Edytuj

Udostępnij za pośrednictwem


ResponseCompletionSource<TResult> Class

Definition

A fulfillable promise.

public sealed class ResponseCompletionSource<TResult> : Orleans.Serialization.Invocation.IResponseCompletionSource, System.Threading.Tasks.Sources.IValueTaskSource, System.Threading.Tasks.Sources.IValueTaskSource<TResult>
type ResponseCompletionSource<'Result> = class
    interface IResponseCompletionSource
    interface IValueTaskSource<'Result>
    interface IValueTaskSource
Public NotInheritable Class ResponseCompletionSource(Of TResult)
Implements IResponseCompletionSource, IValueTaskSource, IValueTaskSource(Of TResult)

Type Parameters

TResult

The underlying result type.

Inheritance
ResponseCompletionSource<TResult>
Implements

Constructors

ResponseCompletionSource<TResult>()

Methods

AsValueTask()

Returns this instance as a ValueTask<TResult>.

AsVoidValueTask()

Returns this instance as a ValueTask.

Complete()

Sets the result to the default value.

Complete(Response)

Sets the result.

Complete(Response<TResult>)

Completes this instance with a result.

GetResult(Int16)

Gets the result of the IValueTaskSource<TResult>.

GetStatus(Int16)

Gets the status of the current operation.

OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags)

Schedules the continuation action for this IValueTaskSource<TResult>.

Reset()

Resets this instance.

SetException(Exception)

Completes this instance with an exception.

SetResult(TResult)

Completes this instance with a result.

Explicit Interface Implementations

IValueTaskSource.GetResult(Int16)

Gets the result of the IValueTaskSource.

Applies to