Observer.Create(T) Method (Action(T))

Creates an observer from the specified OnNext action.

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

static member Create : 
        onNext:Action<'T> -> IObserver<'T> 

Type Parameters

T

The observer argument type.

Parameters

onNext
Type: System.Action(T)
The observer's OnNext action implementation.

Return Value

Type: System.IObserver(T)
The observer object implemented using the given actions.
Show: