TplExtensions.NoThrowValueTaskAwaiter<TResult> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An awaiter that wraps a task and never throws an exception when waited on.
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TplExtensions.NoThrowValueTaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type TplExtensions.NoThrowValueTaskAwaiter<'Result> = struct
interface ICriticalNotifyCompletion
interface INotifyCompletion
Public Structure TplExtensions.NoThrowValueTaskAwaiter(Of TResult)
Implements ICriticalNotifyCompletion
Type Parameters
- TResult
The type of the result.
- Inheritance
-
TplExtensions.NoThrowValueTaskAwaiter<TResult>
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| TplExtensions.NoThrowValueTaskAwaiter<TResult>(ValueTask<TResult>, Boolean) |
Initializes a new instance of the TplExtensions.NoThrowValueTaskAwaiter<TResult> struct. |
Properties
| Name | Description |
|---|---|
| IsCompleted |
Gets a value indicating whether the task has completed. |
Methods
| Name | Description |
|---|---|
| GetResult() |
Does nothing. |
| OnCompleted(Action) |
Schedules a delegate for execution at the conclusion of a task's execution. |
| UnsafeOnCompleted(Action) |
Schedules a delegate for execution at the conclusion of a task's execution without capturing the ExecutionContext. |