rx_core_operator_take

Crates.iorx_core_operator_take
lib.rsrx_core_operator_take
version0.2.0
created_at2026-01-19 19:27:38.078993+00
updated_at2026-01-24 15:10:24.889347+00
descriptiontake operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2055151
size13,671
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_take

crates.io ci codecov license

Emit only the first n values, then complete.

See Also

Example

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
Commit count: 652

cargo fmt