Skip to content

TaskObservableMethodBuilder.SetResult(T) method

Defined in

Type: TaskObservableMethodBuilder Namespace: System.Runtime.CompilerServices Assembly: System.Reactive.dll

Applies to

netstandard2.0

public void SetResult(T result)

Summary: Marks the observable as successfully completed.

Parameters

NameTypeDescription
resultTThe result to use to complete the observable sequence.

Exceptions

TypeCondition
System.InvalidOperationExceptionThe observable has already completed.