Function new

Source
pub fn new<O, T, A>(init: T, auxiliary: A) -> WriteHandle<O, T, A>
where O: Apply<T, A>, T: Clone,
Expand description

Construct a new write handle from an initial swapping value and an auxiliary value.

The swapping type must implement Clone so we can construct the second copy from the first.