[−][src]Function published_value::new
pub fn new<T>() -> (Publisher<T>, Waiter<T>)
Creates a new published value. Returns a Publisher and Waiter pair. The
Publisher
and Waiter
are safe to send to different threads. Waiters can be
cloned and each instance of the clone will receive the published value.