rx_core_operator_first

Crates.iorx_core_operator_first
lib.rsrx_core_operator_first
version0.2.0
created_at2026-01-19 15:24:42.44393+00
updated_at2026-01-24 15:07:25.798652+00
descriptionfirst operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054804
size13,552
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_first

crates.io ci codecov license

Emit only the first value, then complete.

See Also

Example

cargo run -p rx_core --example operator_first_example
let _subscription = (1..=5)
    .into_observable()
    .first()
    .subscribe(PrintObserver::new("first_operator"));

Output:

first_operator - next: 1
first_operator - completed
first_operator - unsubscribed
Commit count: 652

cargo fmt