Function simple_triple_buffer::new_with [−][src]
pub fn new_with<T>(
init: T,
make_buf: impl FnMut(&T) -> T + 'static + Send
) -> (Writer<T>, Reader<T>)
Create a new buffer pair that creates additional buffer instances with a custom clone function.
The number of copies of T will reach a steady state around 2-4.