| Crates.io | rx_core_operator_finalize |
| lib.rs | rx_core_operator_finalize |
| version | 0.2.0 |
| created_at | 2026-01-19 14:50:40.458573+00 |
| updated_at | 2026-01-24 15:07:06.203317+00 |
| description | finalize operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054745 |
| size | 12,221 |
Execute cleanup when the observable finishes or unsubscribes.
next value while letting signals pass through.cargo run -p rx_core --example operator_finalize_completion_example
let _subscription = just(12)
.finalize(|| println!("finally!"))
.subscribe(PrintObserver::new("finalize_operator"));
Output:
finalize_operator - next: 12
finalize_operator - completed
finally!
finalize_operator - unsubscribed