/// Add a reader to the buffer.
///
/// All readers can block the buffer, i.e., the writer will only overwrite
/// data, if data was [consume](crate::sync::Reader::consume)ed by all
/// readers.
Add a reader to the buffer.
Add a reader to the buffer .
pub fn add_reader(&self) -> Reader<T> {
        let w_notifier = BlockingNotifier {
            chan: self.writer_sender.clone(),
            armed: false,
        };
        let (tx, rx) = channel();
        let r_notififer = BlockingNotifier {
            chan: tx,
            armed: false,
        };
        let reader = self.writer.add_reader(r_notififer, w_notifier);
        Reader { reader, chan: rx }
    }
pub fn add_reader ( & self ) -> Reader < T > { let w_notifier = BlockingNotifier { chan : self . writer_sender . clone ( ) , armed : false , } ; let ( tx , rx ) = channel ( ) ; let r_notififer = BlockingNotifier { chan : tx , armed : false , } ; let reader = self . writer . add_reader ( r_notififer , w_notifier ) ; Reader { reader , chan : rx } }
Add a reader to the buffer.
Add a reader to the buffer .
&self