Skip to content

AsyncContextSwitcherAwaitable.OnCompleted(Action) method

Defined in

Type: AsyncContextSwitcherAwaitable Namespace: ReactiveUI.Primitives.Async.Reactive Assembly: ReactiveUI.Primitives.Async.Reactive.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

public void OnCompleted(Action continuation)

View source

Summary: Schedules the specified continuation action to be invoked when the operation has completed.

Parameters

NameTypeDescription
continuationActionThe action to execute when the operation is complete. Cannot be null.

Remarks

If a synchronization context is available, the continuation is posted to it; otherwise, the continuation is scheduled on the associated task scheduler or the default task scheduler. If the operation has already been canceled, the continuation is invoked immediately on the current thread.