| Crates.io | rx_core_operator_count |
| lib.rs | rx_core_operator_count |
| version | 0.2.0 |
| created_at | 2026-01-22 19:43:40.145001+00 |
| updated_at | 2026-01-24 15:05:22.659862+00 |
| description | count operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2062455 |
| size | 13,358 |
The count operator counts upstream emissions and emits the total once
upstream completes.
cargo run -p rx_core --example operator_count_example
let _subscription = (1..=6)
.into_observable()
.filter(|value, _index| value % 2 == 0)
.count()
.subscribe(PrintObserver::new("count_operator"));
Output:
count_operator - next: 3
count_operator - completed
count_operator - unsubscribed