Function abi_stable::external_types::crossbeam_channel::never

source ·
pub fn never<T>() -> RReceiver<T>
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);