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

operator_materialize

crates.io ci codecov license

Turn next/error/complete into notification values.

See Also

Example

cargo run -p rx_core --example operator_materialize_example
let _subscription = (1..=5)
    .into_observable()
    .materialize()
    .subscribe(PrintObserver::new("materialize_operator"));

Output:

materialize_operator - next: Next(1)
materialize_operator - next: Next(2)
materialize_operator - next: Next(3)
materialize_operator - next: Next(4)
materialize_operator - next: Next(5)
materialize_operator - next: Complete
materialize_operator - completed
materialize_operator - unsubscribed