SwitchIfEmptyStreamTransformer<T> constructor

SwitchIfEmptyStreamTransformer<T>(Stream<T> fallbackStream)

Constructs a StreamTransformer which, when the source Stream emits no events, switches over to fallbackStream.

Implementation

SwitchIfEmptyStreamTransformer(Stream<T> fallbackStream)
    : _transformer = _buildTransformer(fallbackStream);