Skip to main content

tape_handles

Function tape_handles 

Source
pub fn tape_handles<T>(tape: TapeLoop<T>) -> (TapeWriter<T>, TapeReader<T>)
Expand description

Wrap a TapeLoop into a writer + reader capability pair sharing one cell.

The returned TapeWriter is unique; clone the TapeReader for additional read taps. The tape stays alive while any handle exists.