ITaskObservable interface¶
Defined in
Namespace: System.Reactive
Assembly: System.Reactive.dll
Full name: System.Reactive.ITaskObservable<T>
Modifiers: public abstract
Summary¶
Extension of the IObservable interface compatible with async method return types.
Applies to
netstandard2.0
Class hierarchy
classDiagram
class ITaskObservable~T~
class IObservable~T~ {
<>
}
IObservable~T~ <|.. ITaskObservable~T~
Implements: IObservable
Remarks¶
This class implements a "task-like" type that can be used as the return type of an asynchronous method in C# 7.0 and beyond. For example:
async ITaskObservable<int> RxAsync()
{
var res = await Observable.Return(21).Delay(TimeSpan.FromSeconds(1));
return res * 2;
}
Methods¶
| Name | Summary |
|---|---|
| GetAwaiter | Gets an awaiter that can be used to await the eventual completion of the observable sequence. |