A channel for single updatable values. The Updater
can update a shared value and
a Receiver
can then update it's own internal value.
Example:
use channel_with;
use spawn;
let = channel_with;
assert_eq!;
spawn
.join.unwrap;
// Shared value is 2 but internal value is 0
assert_eq!;
// Update the latest value
receiver.recv_update.unwrap;
// Shared value is 12 and internal value 12
assert_eq!;
update_channel is distributed under the terms of the MIT license.
See LICENSE for more details