| Crates.io | rx_core_observable_join |
| lib.rs | rx_core_observable_join |
| version | 0.2.0 |
| created_at | 2026-01-19 10:33:23.353582+00 |
| updated_at | 2026-01-24 15:03:04.997192+00 |
| description | join observable for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054200 |
| size | 18,076 |
Emits the latest values from both inputs once both complete.
This observable will only emit once both of its input observables have completed. After which it will emit a tuple of the last emissions from each input observable, then complete.
Meaning if even one of the observables haven't emitted before all of them had completed, only a complete notification will be observed!
If not all observables complete, nothing will be emitted even if all input observables were primed.
cargo run -p rx_core --example observable_join_example
let observable_1 = (1..=3).into_observable();
let observable_2 = (4..=6).into_observable();
let _subscription = join(observable_1, observable_2).subscribe(PrintObserver::new("join"));
Output:
join - next: (3, 6)
join - completed
join - unsubscribed