6 releases

Uses new Rust 2024

0.2.1 Feb 1, 2026
0.2.0 Jan 24, 2026
0.1.2 Jan 24, 2026
0.0.1 Jan 19, 2026

#51 in #rx-core-operator


Used in 2 crates (via rx_core)

MIT license

160KB
4.5K SLoC

operator_start_with

crates.io ci codecov license

Emit a value first when subscribing to the source.

See Also

Example

cargo run -p rx_core --example operator_start_with_example
let _subscription = (1..=5)
    .into_observable()
    .start_with(99)
    .subscribe(PrintObserver::new("start_with_operator"));

Output:

start_with_operator - next: 99
start_with_operator - next: 1
start_with_operator - next: 2
start_with_operator - next: 3
start_with_operator - next: 4
start_with_operator - next: 5
start_with_operator - completed
start_with_operator - unsubscribed

Dependencies

~270–750KB
~18K SLoC