Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

observable_never

crates.io ci codecov license

Never emits and never unsubscribes, only once it’s dropped!

Warning: You will be responsible to unsubscribe from subscriptions made to this observable, as it will never do so on its own!

See Also

Example

cargo run -p rx_core --example observable_never_example
let _subscription = never().subscribe(PrintObserver::new("never"));
println!("nothing happens before dropping the subscription!");

Output:

nothing happens before dropping the subscription!
never - unsubscribed