pub fn attach_listener(&mut self, tx: Sender<u64>) -> Result<()> {
        // Push Sender to a Vector of Sender(s)
        let txs = Arc::clone(&self.txs);
        txs.lock()?.push(tx);

        Ok(())
    }
/// Attach an mpsc::Sender to Timer
///
/// Timer will dispatch an event with the timestamp of the current instant,
/// every 10th second to all attached senders
Attach an mpsc::Sender to Timer
Timer will dispatch an event with the timestamp of the current instant,
every 10th second to all attached senders
Attach an mpsc :: Sender to Timer Timer will dispatch an event with the timestamp of the current instant every 10th second to all attached senders
pub fn attach_listener(&mut self, tx: Sender<u64>) -> Result<()> {
        // Push Sender to a Vector of Sender(s)
        let txs = Arc::clone(&self.txs);
        txs.lock()?.push(tx);
        Ok(())
    }
pub fn attach_listener ( & mut self , tx : Sender < u64 > ) -> Result < ( ) > { // Push Sender to a Vector of Sender(s) let txs = Arc :: clone ( & self . txs ) ; txs . lock ( ) ? . push ( tx ) ; Ok ( ( ) ) }
Attach an mpsc::Sender to Timer
Timer will dispatch an event with the timestamp of the current instant,
every 10th second to all attached senders
Attach an mpsc :: Sender to Timer Timer will dispatch an event with the timestamp of the current instant every 10th second to all attached senders
&mut self
tx
Sender<u64>
&mut self
tx
Sender<u64>