Never Observable
Rocket.never
— Functionnever(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
Rocket.NeverObservable
— TypeNeverObservable{D}()
An Observable that emits no items to the Observer and never completes.
Type parameters
D
: Type of Observable data
See also: Subscribable
, never