TaskUtilities Members
The TaskUtilities type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
AsTask(CancellationToken) |
Allows using a Cancellation Token as if it were a task.
|
![]() ![]() |
AsTask<(Of <<'(T>)>>)(CancellationToken) |
Allows using a Cancellation Token as if it were a task.
|
![]() ![]() |
AutoCancelingTask(TimeSpan) |
Creates a task that automatically cancels after a given delay.
|
![]() ![]() |
AutoCancelingTask(Int32) |
Creates a task that automatically cancels after a given delay.
|
![]() ![]() |
AutoCancelingTask<(Of <<'(T>)>>)(TimeSpan) |
Creates a task that automatically cancels after a given delay.
|
![]() ![]() |
AutoCancelingTask<(Of <<'(T>)>>)(Int32) |
Creates a task that automatically cancels after a given delay.
|
![]() ![]() |
AutoCancelingToken(TimeSpan) |
Automatically cancels a CancellationToken after the indicated amount of time.
|
![]() ![]() |
AutoCancelingToken(Int32) |
Automatically cancels a CancellationToken after the indicated amount of time in milliseconds.
|
![]() ![]() |
AutoCompletingTask<(Of <<'(T>)>>)(T, TimeSpan) |
Creates a task that automatically completes after a given delay.
|
![]() ![]() |
AutoCompletingTask<(Of <<'(T>)>>)(T, Int32) |
Creates a task that automatically completes after a given delay.
|
![]() ![]() |
DelaySafe(TimeSpan, CancellationToken) |
Creates a cancellable task that completes after a specified time interval. This will not throw an exception if the cancellationToken is triggered or disposed.
|
![]() ![]() |
DelaySafe(Int32, CancellationToken) |
Creates a cancellable task that completes after a specified number of milliseconds. This will not throw an exception if the cancellationToken is triggered or disposed.
|
![]() ![]() |
ForEachAsync(IReadOnlyCollection<(Of <<'(Func<(Of <<'(Task>)>>)>)>>)) |
Runs each action in parallel.
|
![]() ![]() |
ForEachAsync<(Of <<'(T>)>>)(IReadOnlyCollection<(Of <<'(T>)>>), Func<(Of <<'(T, Task>)>>)) |
In parallel, performs the same asynchronous action on each element in the list.
|
![]() ![]() |
RunConcurrently |
Runs the Task in a concurrent thread without waiting for it to complete. This will start the task if it is not already running.
|
![]() ![]() |
WaitForCompleteOrCancel |
Wait for the indicated task to be completed or canceled.
|
![]() ![]() |
WhenAll(IEnumerable<(Of <<'(Task>)>>), CancellationToken) |
A version of Task.WhenAll that can be canceled.
|
![]() ![]() |
WhenAll(IEnumerable<(Of <<'(Task>)>>)) |
Task.WhenAll as an extension method.
|
![]() ![]() |
WhenAny(IEnumerable<(Of <<'(Task>)>>), CancellationToken) |
A version of Task.WhenAny that can be canceled.
|
![]() ![]() |
WhenAny(IEnumerable<(Of <<'(Task>)>>)) |
A version of Task.WhenAll that can be canceled.
|