Skip to content

)} ,System.Threading.CancellationToken)}

ObservableAsync.WaitCompletionAsync(IObservableAsync) method

Defined in

Type: ObservableAsync Namespace: ReactiveUI.Extensions.Async Assembly: ReactiveUI.Extensions.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public static ValueTask WaitCompletionAsync<T>(this IObservableAsync<T> @this)
  • 2. public static ValueTask WaitCompletionAsync<T>(this IObservableAsync<T> @this, CancellationToken cancellationToken)

1. Overload

public static ValueTask WaitCompletionAsync<T>(this IObservableAsync<T> @this)

View source

Summary: Asynchronously waits for the observable sequence to complete without retrieving any values.

Type parameters

NameDescription
TThe type of the elements in the observable sequence.

Parameters

NameTypeDescription
this[IObservableAsync](#The observable sequence to wait for completion.

Returns: ValueTask -- A ValueTask that represents the asynchronous wait operation.

Remarks

This method subscribes to the observable sequence and completes when the sequence signals completion or when the operation is canceled. Any values produced by the sequence are ignored.

2. Overload

public static ValueTask WaitCompletionAsync<T>(this IObservableAsync<T> @this, CancellationToken cancellationToken)

Summary: Asynchronously waits for the observable sequence to complete without retrieving any values.

Type parameters

NameDescription
TThe type of the elements in the observable sequence.

Parameters

NameTypeDescription
this[IObservableAsync](#The observable sequence to wait for completion.
cancellationTokenCancellationTokenA cancellation token that can be used to cancel the wait operation.

Returns: ValueTask -- A ValueTask that represents the asynchronous wait operation.

Remarks

This method subscribes to the observable sequence and completes when the sequence signals completion or when the operation is canceled. Any values produced by the sequence are ignored.