Skip to content

ObserverAsync.OnCompletedAsync(Result) method

Defined in

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

Attributes: [DebuggerStepThrough]

public ValueTask OnCompletedAsync(Result result)

View source

Summary: Asynchronously performs completion logic when the operation has finished, handling any finalization or cleanup tasks required.

Parameters

NameTypeDescription
result[Result](#The result of the completed operation, containing information about its outcome.

Returns: ValueTask -- A task that represents the asynchronous completion operation.

Remarks

If an unhandled exception occurs during completion, it is passed to the unhandled exception handler. This method ensures that necessary resources are released after completion.