rx_core_operator_map_never

Crates.iorx_core_operator_map_never
lib.rsrx_core_operator_map_never
version0.2.0
created_at2026-01-19 16:48:31.198273+00
updated_at2026-01-24 15:08:15.962974+00
descriptionmap_never operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054950
size21,544
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_map_never

crates.io ci codecov license

Re-type Never next/error channels into concrete types.

See Also

Example

cargo run -p rx_core --example operator_map_never_example
let _subscription_error = throw("error")
    .map_never()
    .subscribe(PrintObserver::<i32, &'static str>::new("map_never (next)"));

let _subscription_next = just(1)
    .map_never()
    .subscribe(PrintObserver::<i32, &'static str>::new("map_never (error)"));

let _subscription_both = empty()
    .map_never_both()
    .subscribe(PrintObserver::<i32, &'static str>::new("map_never_both"));

Output:

map_never (next) - error: "error"
map_never (next) - unsubscribed
map_never (error) - next: 1
map_never (error) - completed
map_never (error) - unsubscribed
map_never_both - completed
map_never_both - unsubscribed
Commit count: 652

cargo fmt