Method ToObservable
ToObservable(IDisposable)
Converts an IDisposable object into an IObservable of type Unit.
Declaration
public static IObservable<Unit> ToObservable(this IDisposable disposable)
Parameters
Type | Name | Description |
---|---|---|
IDisposable | disposable | The IDisposable object to convert. |
Returns
Type | Description |
---|---|
IObservable<Unit> | An IObservable of type Unit with the IDisposable encapsulated. |