operator_end_with
Emit a value on completion.
See Also
- StartWithOperator - Emit a value first when subscribing to the source.
Example
cargo run -p rx_core --example operator_end_with_example
let _subscription = (1..=5)
.into_observable()
.end_with(99)
.subscribe(PrintObserver::new("end_with_operator"));
Output:
end_with_operator - next: 1
end_with_operator - next: 2
end_with_operator - next: 3
end_with_operator - next: 4
end_with_operator - next: 5
end_with_operator - next: 99
end_with_operator - completed
end_with_operator - unsubscribed