create
Create from stream source
Stream.create(new CustomSource())
.subscribe(R.debug);Create from stream source
Stream.create(new CustomSource())
.subscribe(R.debug);Create from value
Stream.of('abc')
.subscribe(R.debug);
// abcCreate from error
Stream.throwError('test error')
.subscribe(R.debug, R.debug.apply('Error: '), R.debug.apply('Completed'));
// (Error: , test error)Create an empty stream
Stream.empty()
.subscribe(R.debug, R.debug.apply('Error: '), R.debug.apply('Completed'));
// CompletedCreate a stream that does not emit error or complete event.
Stream.never()
.subscribe(R.debug, R.debug.apply('Error: '), R.debug.apply('Completed'));Create a stream from a collection
Stream.fromData(new List