| Crates.io | rx_core_operator_map_never |
| lib.rs | rx_core_operator_map_never |
| version | 0.2.0 |
| created_at | 2026-01-19 16:48:31.198273+00 |
| updated_at | 2026-01-24 15:08:15.962974+00 |
| description | map_never operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054950 |
| size | 21,544 |
Re-type Never next/error channels into concrete types.
Into.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