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
notifyStopAction<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
Methods
BeginInvoke(Action<Result>, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(Action<Result> notifyStop, AsyncCallback callback, object @object)
Parameters
notifyStopAction<Result>callbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual IAsyncDisposable EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(Action<Result>)
public virtual IAsyncDisposable Invoke(Action<Result> notifyStop)