pub fn send(&self, signal: &Sig) {
    match self.subscribers {
      DependentStreams::Own(ref subscribers) => {
        for sub in subscribers.borrow_mut().iter_mut() {
          sub.1(signal);
        }
      }

      DependentStreams::Weak(ref weak) => {
        if let Some(subscribers) = weak.upgrade() {
          for sub in subscribers.borrow_mut().iter_mut() {
            sub.1(signal);
          }
        }
      }
    }
  }
/// Send a signal down the stream.
Send a signal down the stream.
Send a signal down the stream .
pub fn send(&self, signal: &Sig) {
    match self.subscribers {
      DependentStreams::Own(ref subscribers) => {
        for sub in subscribers.borrow_mut().iter_mut() {
          sub.1(signal);
        }
      }
      DependentStreams::Weak(ref weak) => {
        if let Some(subscribers) = weak.upgrade() {
          for sub in subscribers.borrow_mut().iter_mut() {
            sub.1(signal);
          }
        }
      }
    }
  }
pub fn send ( & self , signal : & Sig ) { match self . subscribers { DependentStreams :: Own ( ref subscribers ) => { for sub in subscribers . borrow_mut ( ) . iter_mut ( ) { sub . 1 ( signal ) ; } } DependentStreams :: Weak ( ref weak ) => { if let Some ( subscribers ) = weak . upgrade ( ) { for sub in subscribers . borrow_mut ( ) . iter_mut ( ) { sub . 1 ( signal ) ; } } } } }
Send a signal down the stream.
Send a signal down the stream .
&self
signal
&Sig
&self
signal
&Sig