Domain Detective

API Reference

Class

CancellationExtensions

Namespace DomainDetective

Provides helper methods for working with tasks and cancellation tokens.

Inheritance

  • Object
  • CancellationExtensions

Methods

WaitWithCancellation(System.Threading.Tasks.Task task, System.Threading.CancellationToken token) #

Waits for the task to complete while observing a cancellation token.

Parameters

task System.Threading.Tasks.Task required
token System.Threading.CancellationToken required
WaitWithCancellation``1(System.Threading.Tasks.Task{``0} task, System.Threading.CancellationToken token) #

Waits for the task to complete while observing a cancellation token and returns its result.

Parameters

task System.Threading.Tasks.Task{``0} required
token System.Threading.CancellationToken required
{{ include "footer" }}