pub fn register(&mut self, cx: &mut Context, state: &mut State) {
        if state.0 == Some(self.generation) {
            return;
        }
        state.0 = Some(self.generation);
        self.wakers.push(cx.waker().clone());
    }
/// Ensure the next `wake` call will wake the calling task
///
/// Checks the task-associated generation counter stored in `state`. If it's present and
/// current, we already have this task's `Waker` and no action is necessary. Otherwise, record a
/// `Waker` and store the current generation in `state`.
Ensure the next `wake` call will wake the calling task
Checks the task-associated generation counter stored in `state`. If it's present and
current, we already have this task's `Waker` and no action is necessary. Otherwise, record a
`Waker` and store the current generation in `state`.
Ensure the next ` wake ` call will wake the calling task Checks the task - associated generation counter stored in ` state ` . If it ' s present and current we already have this task ' s ` Waker ` and no action is necessary . Otherwise record a ` Waker ` and store the current generation in ` state ` .
pub fn register(&mut self, cx: &mut Context, state: &mut State) {
        if state.0 == Some(self.generation) {
            return;
        }
        state.0 = Some(self.generation);
        self.wakers.push(cx.waker().clone());
    }
pub fn register ( & mut self , cx : & mut Context , state : & mut State ) { if state . 0 == Some ( self . generation ) { return ; } state . 0 = Some ( self . generation ) ; self . wakers . push ( cx . waker ( ) . clone ( ) ) ; }
Ensure the next `wake` call will wake the calling task
Checks the task-associated generation counter stored in `state`.
Ensure the next ` wake ` call will wake the calling task Checks the task - associated generation counter stored in ` state ` .
&mut self
cx
&mut Context
state
&mut State