Never Observable

Rocket.neverFunction
never(T = Any)

Creation operator for the NeverObservable 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.

Arguments

  • T: Type of Observable data, optional, Any is the default

Examples

using Rocket

source = never()
subscribe!(source, logger())
;

# output

See also: NeverObservable, subscribe!, logger

source