| Crates.io | rx_core_operator_find |
| lib.rs | rx_core_operator_find |
| version | 0.2.0 |
| created_at | 2026-01-19 15:13:06.256584+00 |
| updated_at | 2026-01-24 15:07:13.38035+00 |
| description | find operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054788 |
| size | 14,712 |
Emit the first value that matches a predicate.
cargo run -p rx_core --example operator_find_example
let _subscription = (1..=5)
.into_observable()
.find(|i| i % 2 == 0)
.subscribe(PrintObserver::new("find_operator"));
Output:
find_operator - next: 2
find_operator - completed
find_operator - unsubscribed