System.Threading.Tasks.Extensions
Indicates the type of the async method builder that should be used by a language compiler to
build the attributed type when used as the return type of an async method.
Initializes the .
The of the associated builder.
Gets the of the associated builder.
Represents a builder for asynchronous methods that return a .
The to which most operations are delegated.
true if completed synchronously and successfully; otherwise, false.
true if the builder should be used for setting/getting the result; otherwise, false.
Creates an instance of the struct.
The initialized instance.
Begins running the builder with the associated state machine.
The type of the state machine.
The state machine instance, passed by reference.
Associates the builder with the specified state machine.
The state machine instance to associate with the builder.
Marks the task as successfully completed.
Marks the task as failed and binds the specified exception to the task.
The exception to bind to the task.
Gets the task for this builder.
Schedules the state machine to proceed to the next action when the specified awaiter completes.
The type of the awaiter.
The type of the state machine.
The awaiter.
The state machine.
Schedules the state machine to proceed to the next action when the specified awaiter completes.
The type of the awaiter.
The type of the state machine.
The awaiter.
The state machine.
Represents a builder for asynchronous methods that returns a .
The type of the result.
The to which most operations are delegated.
The result for this builder, if it's completed before any awaits occur.
true if contains the synchronous result for the async method; otherwise, false.
true if the builder should be used for setting/getting the result; otherwise, false.
Creates an instance of the struct.
The initialized instance.
Begins running the builder with the associated state machine.
The type of the state machine.
The state machine instance, passed by reference.
Associates the builder with the specified state machine.
The state machine instance to associate with the builder.
Marks the task as successfully completed.
The result to use to complete the task.
Marks the task as failed and binds the specified exception to the task.
The exception to bind to the task.
Gets the task for this builder.
Schedules the state machine to proceed to the next action when the specified awaiter completes.
The type of the awaiter.
The type of the state machine.
the awaiter
The state machine.
Schedules the state machine to proceed to the next action when the specified awaiter completes.
The type of the awaiter.
The type of the state machine.
the awaiter
The state machine.
Provides an awaitable type that enables configured awaits on a .
The wrapped .
Initializes the awaitable.
The wrapped .
Returns an awaiter for this instance.
Provides an awaiter for a .
The value being awaited.
Initializes the awaiter.
The value to be awaited.
Gets whether the has completed.
Gets the result of the ValueTask.
Schedules the continuation action for the .
Schedules the continuation action for the .
Provides an awaitable type that enables configured awaits on a .
The type of the result produced.
The wrapped .
Initializes the awaitable.
The wrapped .
Returns an awaiter for this instance.
Provides an awaiter for a .
The value being awaited.
Initializes the awaiter.
The value to be awaited.
Gets whether the has completed.
Gets the result of the ValueTask.
Schedules the continuation action for the .
Schedules the continuation action for the .
Provides an awaiter for a .
Shim used to invoke an passed as the state argument to a .
The value being awaited.
Initializes the awaiter.
The value to be awaited.
Gets whether the has completed.
Gets the result of the ValueTask.
Schedules the continuation action for this ValueTask.
Schedules the continuation action for this ValueTask.
Provides an awaiter for a .
The value being awaited.
Initializes the awaiter.
The value to be awaited.
Gets whether the has completed.
Gets the result of the ValueTask.
Schedules the continuation action for this ValueTask.
Schedules the continuation action for this ValueTask.
Flags passed from and to
and
to control behavior.
No requirements are placed on how the continuation is invoked.
Set if OnCompleted should capture the current scheduling context (e.g. SynchronizationContext)
and use it when queueing the continuation for execution. If this is not set, the implementation
may choose to execute the continuation in an arbitrary location.
Set if OnCompleted should capture the current ExecutionContext and use it to run the continuation.
Indicates the status of an or .
The operation has not yet completed.
The operation completed successfully.
The operation completed with an error.
The operation completed due to cancellation.
Represents an object that can be wrapped by a .
Gets the status of the current operation.
Opaque value that was provided to the 's constructor.
Schedules the continuation action for this .
The continuation to invoke when the operation has completed.
The state object to pass to when it's invoked.
Opaque value that was provided to the 's constructor.
The flags describing the behavior of the continuation.
Gets the result of the .
Opaque value that was provided to the 's constructor.
Represents an object that can be wrapped by a .
Specifies the type of data returned from the object.
Gets the status of the current operation.
Opaque value that was provided to the 's constructor.
Schedules the continuation action for this .
The continuation to invoke when the operation has completed.
The state object to pass to when it's invoked.
Opaque value that was provided to the 's constructor.
The flags describing the behavior of the continuation.
Gets the result of the .
Opaque value that was provided to the 's constructor.
Provides an awaitable result of an asynchronous operation.
s are meant to be directly awaited. To do more complicated operations with them, a
should be extracted using . Such operations might include caching an instance to be awaited later,
registering multiple continuations with a single operation, awaiting the same task multiple times, and using combinators over
multiple operations.
A task canceled using `new CancellationToken(true)`.
A successfully completed task.
null if representing a successful synchronous completion, otherwise a or a .
Opaque value passed through to the .
true to continue on the capture context; otherwise, true.
Stored in the rather than in the configured awaiter to utilize otherwise padding space.
Initialize the with a that represents the operation.
The task.
Initialize the with a object that represents the operation.
The source.
Opaque value passed through to the .
Returns the hash code for this instance.
Returns a value indicating whether this value is equal to a specified .
Returns a value indicating whether this value is equal to a specified value.
Returns a value indicating whether two values are equal.
Returns a value indicating whether two values are not equal.
Gets a object to represent this ValueTask.
It will either return the wrapped task object if one exists, or it'll
manufacture a new task object to represent the result.
Gets a that may be used at any point in the future.
Creates a to represent the .
The is passed in rather than reading and casting
so that the caller can pass in an object it's already validated.
Type used to create a to represent a .
The associated .
The token to pass through to operations on
Gets whether the represents a completed operation.
Gets whether the represents a successfully completed operation.
Gets whether the represents a failed operation.
Gets whether the represents a canceled operation.
If the is backed by a result or by a ,
this will always return false. If it's backed by a , it'll return the
value of the task's property.
Throws the exception that caused the to fail. If it completed successfully, nothing is thrown.
Gets an awaiter for this .
Configures an awaiter for this .
true to attempt to marshal the continuation back to the captured context; otherwise, false.
Provides a value type that can represent a synchronously available value or a task object.
Specifies the type of the result.
s are meant to be directly awaited. To do more complicated operations with them, a
should be extracted using or . Such operations might include caching an instance to
be awaited later, registering multiple continuations with a single operation, awaiting the same task multiple times, and using
combinators over multiple operations.
A task canceled using `new CancellationToken(true)`. Lazily created only when first needed.
null if has the result, otherwise a or a .
The result to be used if the operation completed successfully synchronously.
Opaque value passed through to the .
true to continue on the captured context; otherwise, false.
Stored in the rather than in the configured awaiter to utilize otherwise padding space.
Initialize the with a result value.
The result.
Initialize the with a that represents the operation.
The task.
Initialize the with a object that represents the operation.
The source.
Opaque value passed through to the .
Non-verified initialization of the struct to the specified values.
The object.
The result.
The token.
true to continue on captured context; otherwise, false.
Returns the hash code for this instance.
Returns a value indicating whether this value is equal to a specified .
Returns a value indicating whether this value is equal to a specified value.
Returns a value indicating whether two values are equal.
Returns a value indicating whether two values are not equal.
Gets a object to represent this ValueTask.
It will either return the wrapped task object if one exists, or it'll
manufacture a new task object to represent the result.
Gets a that may be used at any point in the future.
Creates a to represent the .
The is passed in rather than reading and casting
so that the caller can pass in an object it's already validated.
Type used to create a to represent a .
The associated .
The token to pass through to operations on
Gets whether the represents a completed operation.
Gets whether the represents a successfully completed operation.
Gets whether the represents a failed operation.
Gets whether the represents a canceled operation.
If the is backed by a result or by a ,
this will always return false. If it's backed by a , it'll return the
value of the task's property.
Gets the result.
Gets an awaiter for this .
Configures an awaiter for this .
true to attempt to marshal the continuation back to the captured context; otherwise, false.
Gets a string-representation of this .