pub fn never<T>() -> RReceiver<T>
Available on crate feature channels only.
Expand description

Creates a receiver that can never receive any value.

Example

use abi_stable::external_types::crossbeam_channel as mpmc;

let rx = mpmc::never::<()>();

assert_eq!(rx.try_recv().ok(), None);