Edit

Share via


ResponseCompletionSource Class

Definition

A fulfillable promise.

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

Constructors

ResponseCompletionSource()

Methods

AsValueTask()

Returns this instance as a ValueTask<TResult>.

AsVoidValueTask()

Returns this instance as a ValueTask.

Complete()

Completes this instance with the default result.

Complete(Response)

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(Response)

Completes this instance with a result.

Explicit Interface Implementations

IValueTaskSource.GetResult(Int16)

Gets the result of the IValueTaskSource.

Applies to