SwitchLatestStream<T> constructor

SwitchLatestStream<T>(
  1. Stream<Stream<T>> streams
)

Constructs a Stream that emits Streams (aka a 'Higher Order Stream") into a single Stream that emits the items emitted by the most-recently-emitted of those Streams.

Implementation

SwitchLatestStream(Stream<Stream<T>> streams)
    : _controller = _buildController(streams);