bind method
Bind a stream to the given subject subject
.
Each event from the stream will be added to the subject, meaning that the
both needs to be of the same type.
Be aware that the binding is facilitating the subscribing, so the
unsubscribing needs to be handled accordingly either by
using CompositeSubscription
or manually.
Implementation
StreamSubscription<T> bind(Subject<T> subject) => listen(subject.sink.add);