Share via


TaskObservableExtensions Class

Provides a set of static methods for converting Tasks to IObservables.

Inheritance Hierarchy

System.Object
  System.Reactive.Threading.Tasks.TaskObservableExtensions

Namespace:  System.Reactive.Threading.Tasks
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class TaskObservableExtensions
'Usage
public static class TaskObservableExtensions
[ExtensionAttribute]
public ref class TaskObservableExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type TaskObservableExtensions =  class end
public final class TaskObservableExtensions

Methods

  Name Description
Public methodStatic member ToObservable(Task) Returns an observable sequence that signals when the task completes.
Public methodStatic member ToObservable<TResult>(Task<TResult>) Returns an observable sequence that propagates the result of the task.
Public methodStatic member ToTask<TResult>(IObservable<TResult>) Returns a task that contains the last value of the observable sequence.
Public methodStatic member ToTask<TResult>(IObservable<TResult>, Object) Returns a task that contains the last value of the observable sequence.
Public methodStatic member ToTask<TResult>(IObservable<TResult>, CancellationToken) Returns a task that contains the last value of the observable sequence.
Public methodStatic member ToTask<TResult>(IObservable<TResult>, CancellationToken, Object) Returns a task that contains the last value of the observable sequence.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Reactive.Threading.Tasks Namespace