Class ResultSink<TResult>
Type Parameters
TResult
- Inheritance
-
ResultSink<TResult>
- Implements
-
IValue
Task <TResult>Source
- Inherited Members
Properties
Future
Property Value
- Value
Task <TResult>
FutureNoResult
Property Value
IsCancelled
Property Value
Methods
GetResult(short)
Gets the result of the IValueTaskSource<TResult>.
Parameters
Returns
- TResult
The result of the IValueTaskSource<TResult>.
GetStatus(short)
Gets the status of the current operation.
Parameters
Returns
- Value
Task Source Status A value that indicates the status of the current operation.
OnCompleted(Action<object?>, object?, short, ValueTaskSourceOnCompletedFlags)
Schedules the continuation action for this IValueTaskSource<TResult>.
public void OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
Parameters
continuation
Action<object>The continuation to invoke when the operation has completed.
state
objectThe state object to pass to
continuation
when it's invoked.token
shortAn opaque value that was provided to the Value
Task constructor.flags
ValueTask Source OnCompleted Flags The flags describing the behavior of the continuation.
SetCancelled(OperationCanceledException?)
Parameters
SetException(Exception)
Parameters
exception
Exception
SetResult(TResult)
Parameters
result
TResult