Function txrx::factories::just [−][src]
pub fn just<T>(value: T) -> Just<T>
Expand description
Create a sender that, when started, immediately sends its value to the receiver.
Examples
Basic usage
use txrx::{just, SenderExt};
let r = just("hello world").sync_wait().unwrap();
assert_eq!(r, "hello world");