pub trait SubscriptionLike {
// Required methods
fn unsubscribe(&mut self);
fn is_closed(&self) -> bool;
}Expand description
Subscription returns from Observable.subscribe(Subscriber) to allow
unsubscribing.
Required Methods§
Sourcefn unsubscribe(&mut self)
fn unsubscribe(&mut self)
This allows deregistering an stream before it has finished receiving all events (i.e. before onCompleted is called).