Interface ObserverStatic

Index

Methods

Methods

public create(onNext?: (value: T) => void, onError?: (exception: any) => void, onCompleted?: () => void): Observer

Parameters

  • onNext?: (value: T) => void optional
  • onError?: (exception: any) => void optional
  • onCompleted?: () => void optional

Returns

Observer

public fromNotifier(handler: (notification: Rx.Notification<T>) => void): Observer

Parameters

  • handler: (notification: Rx.Notification<T>) => void

Returns

Observer

public notifyOn(scheduler: IScheduler): Observer

Schedules the invocation of observer methods on the given scheduler.

Parameters

  • scheduler: IScheduler

    Scheduler to schedule observer messages on.

Returns

Observer

Observer whose messages are scheduled on the given scheduler.