pub fn later_on_present<C>(self, runtime: &mut Runtime, c: C) where C: Continuation<V> {
    if self.runtime.is_currently_emitted.get() {
      runtime.on_next_instant(Box::new(move |r: &mut Runtime, v: ()| {
        let previous_value = self.runtime.previous_value.take().unwrap();
        self.runtime.previous_value.set(Some(previous_value.clone()));

        c.call(r, previous_value.clone());
      }));
    }
    else {
      self.runtime.call_later_on_present.borrow_mut().push(Box::new(c));
    }
  }
/// Register a continuation to run during next instant
/// if the signal is present during current instant.
///
/// If executed, the continuation will be given the previous value of the signal.
Register a continuation to run during next instant
if the signal is present during current instant.

If executed, the continuation will be given the previous value of the signal.
Register a continuation to run during next instant if the signal is present during current instant . If executed the continuation will be given the previous value of the signal .
pub fn later_on_present<C>(self, runtime: &mut Runtime, c: C) where C: Continuation<V> {
    if self.runtime.is_currently_emitted.get() {
      runtime.on_next_instant(Box::new(move |r: &mut Runtime, v: ()| {
        let previous_value = self.runtime.previous_value.take().unwrap();
        self.runtime.previous_value.set(Some(previous_value.clone()));
        c.call(r, previous_value.clone());
      }));
    }
    else {
      self.runtime.call_later_on_present.borrow_mut().push(Box::new(c));
    }
  }
pub fn later_on_present < C > ( self , runtime : & mut Runtime , c : C ) where C : Continuation < V > { if self . runtime . is_currently_emitted . get ( ) { runtime . on_next_instant ( Box :: new ( move | r : & mut Runtime , v : ( ) | { let previous_value = self . runtime . previous_value . take ( ) . unwrap ( ) ; self . runtime . previous_value . set ( Some ( previous_value . clone ( ) ) ) ; c . call ( r , previous_value . clone ( ) ) ; } ) ) ; } else { self . runtime . call_later_on_present . borrow_mut ( ) . push ( Box :: new ( c ) ) ; } }
Register a continuation to run during next instant
if the signal is present during current instant.
Register a continuation to run during next instant if the signal is present during current instant .
self
runtime
&mut Runtime
c
C