Class Notification

Index

Properties

Methods

Properties

public exception: any

public hasValue: boolean

public kind: string

public value: T in Rx.Notification<T>

Methods

public accept(observer: IObserver)

Parameters

public accept(onNext: (value: T) => TResult, onError?: (exception: any) => TResult, onCompleted?: () => TResult): TResult

Parameters

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

Returns

TResult

public static createOnCompleted(): Notification

Returns

Notification

public static createOnError(exception: any): Notification

Parameters

  • exception: any

Returns

Notification

public static createOnNext(value: T): Notification

Parameters

  • value: T

Returns

Notification

public equals(other: Notification): boolean

Parameters

Returns

boolean

public toObservable(scheduler?: IScheduler): Observable

Parameters

Returns

Observable