Table of Contents

Delegate CompletionObservableDelegate

Namespace
ReactiveUI.Extensions.Async
Assembly
ReactiveUI.Extensions.dll

Represents a method that subscribes to completion notifications and returns an asynchronous disposable used to unsubscribe.

public delegate IAsyncDisposable CompletionObservableDelegate(Action<Result> notifyStop)

Parameters

notifyStop Action<Result>

An action to be invoked with a Result when the completion event occurs. This callback is called to notify the subscriber of the completion result.

Returns

IAsyncDisposable

An IAsyncDisposable that unsubscribes the notification when disposed asynchronously.

Extension Methods

Remarks

The returned IAsyncDisposable should be disposed to stop receiving completion notifications and to release any associated resources. The notifyStop callback may be invoked on a background thread.

Constructors

CompletionObservableDelegate(object, nint)

public CompletionObservableDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(Action<Result>, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(Action<Result> notifyStop, AsyncCallback callback, object @object)

Parameters

notifyStop Action<Result>
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual IAsyncDisposable EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

IAsyncDisposable

Invoke(Action<Result>)

public virtual IAsyncDisposable Invoke(Action<Result> notifyStop)

Parameters

notifyStop Action<Result>

Returns

IAsyncDisposable