| Crates.io | rx_core_operator_take |
| lib.rs | rx_core_operator_take |
| version | 0.2.0 |
| created_at | 2026-01-19 19:27:38.078993+00 |
| updated_at | 2026-01-24 15:10:24.889347+00 |
| description | take operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2055151 |
| size | 13,671 |
Emit only the first n values, then complete.
Option and keep only the Some values.n values.None and forward Some values.cargo run -p rx_core --example operator_take_example
let _subscription = (1..=5)
.into_observable()
.take(2)
.subscribe(PrintObserver::new("take_operator"));
Output:
take_operator - next: 1
take_operator - next: 2
take_operator - completed
take_operator - unsubscribed