PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
rxjs
/
src
/
internal
/
observable
import { Observable } from '../Observable'; import { noop } from '../util/noop'; /** * An Observable that emits no items to the Observer and never completes. * *  * * A simple Observable that emits neither values nor errors nor the completion * notification. It can be used for testing purposes or for composing with other * Observables. Please note that by never emitting a complete notification, this * Observable keeps the subscription from being disposed automatically. * Subscriptions need to be manually disposed. * * ## Example * ### Emit the number 7, then never emit anything else (not even complete) * ```ts * import { NEVER } from 'rxjs'; * import { startWith } from 'rxjs/operators'; * * function info() { * console.log('Will not be called'); * } * const result = NEVER.pipe(startWith(7)); * result.subscribe(x => console.log(x), info, info); * * ``` * * @see {@link Observable} * @see {@link index/EMPTY} * @see {@link of} * @see {@link throwError} */ export const NEVER = new Observable<never>(noop); /** * @deprecated Deprecated in favor of using {@link NEVER} constant. */ export function never () { return NEVER; }
[-] never.ts
[edit]
[-] timer.ts
[edit]
[-] range.ts
[edit]
[-] using.ts
[edit]
[-] SubscribeOnObservable.ts
[edit]
[-] empty.ts
[edit]
[-] of.ts
[edit]
[+]
dom
[+]
..
[-] partition.ts
[edit]
[-] bindCallback.ts
[edit]
[-] iif.ts
[edit]
[-] combineLatest.ts
[edit]
[-] fromArray.ts
[edit]
[-] pairs.ts
[edit]
[-] forkJoin.ts
[edit]
[-] fromEventPattern.ts
[edit]
[-] fromEvent.ts
[edit]
[-] defer.ts
[edit]
[-] concat.ts
[edit]
[-] onErrorResumeNext.ts
[edit]
[-] interval.ts
[edit]
[-] from.ts
[edit]
[-] merge.ts
[edit]
[-] ConnectableObservable.ts
[edit]
[-] fromObservable.ts
[edit]
[-] fromPromise.ts
[edit]
[-] generate.ts
[edit]
[-] zip.ts
[edit]
[-] bindNodeCallback.ts
[edit]
[-] fromIterable.ts
[edit]
[-] throwError.ts
[edit]
[-] race.ts
[edit]