pub fn wake_next_timer(&mut self) -> Option<zx::Time> {
        with_local_timer_heap(|timer_heap| {
            let deadline = next_deadline(timer_heap).map(|waker| {
                waker.wake();
                waker.time
            });
            if deadline.is_some() {
                timer_heap.pop();
            }
            deadline
        })
    }
/// Wake up the next task waiting for a timer, if any, and return the time for which the
/// timer was scheduled.
///
/// This is intended for use in test code in conjunction with `run_until_stalled`.
/// For example, here is how one could test that the Timer future fires after the given
/// timeout:
///
///     let deadline = 5.seconds().after_now();
///     let mut future = Timer::<Never>::new(deadline);
///     assert_eq!(Ok(Poll::Pending), exec.run_until_stalled(&mut future));
///     assert_eq!(Some(deadline), exec.wake_next_timer());
///     assert_eq!(Ok(Poll::Ready(())), exec.run_until_stalled(&mut future));
Wake up the next task waiting for a timer, if any, and return the time for which the
timer was scheduled.

This is intended for use in test code in conjunction with `run_until_stalled`.
For example, here is how one could test that the Timer future fires after the given
timeout.


Wake up the next task waiting for a timer if any and return the time for which the timer was scheduled . This is intended for use in test code in conjunction with ` run_until_stalled ` . For example here is how one could test that the Timer future fires after the given timeout .
pub fn wake_next_timer(&mut self) -> Option<zx::Time> {
        with_local_timer_heap(|timer_heap| {
            let deadline = next_deadline(timer_heap).map(|waker| {
                waker.wake();
                waker.time
            });
            if deadline.is_some() {
                timer_heap.pop();
            }
            deadline
        })
    }
pub fn wake_next_timer ( & mut self ) -> Option < zx :: Time > { with_local_timer_heap ( | timer_heap | { let deadline = next_deadline ( timer_heap ) . map ( | waker | { waker . wake ( ) ; waker . time } ) ; if deadline . is_some ( ) { timer_heap . pop ( ) ; } deadline } ) }
Wake up the next task waiting for a timer, if any, and return the time for which the
timer was scheduled.
Wake up the next task waiting for a timer if any and return the time for which the timer was scheduled .
&mut self
&mut self