never<T> static method

Stream<T> never<T>()

Returns a non-terminating stream sequence, which can be used to denote an infinite duration.

The never operator is one with very specific and limited behavior. These are useful for testing purposes, and sometimes also for combining with other Streams or as parameters to operators that expect other Streams as parameters.

Example

Rx.never().listen(print); // Neither prints nor terminates

Implementation

static Stream<T> never<T>() => NeverStream<T>();