fn transition_to_complete(&mut self) {
        // Transition the task's lifecycle to `Complete` and get a snapshot of
        // the task's sate.
        let snapshot = self.header().state.transition_to_complete();

        if !snapshot.is_join_interested() {
            // The `JoinHandle` is not interested in the output of this task. It
            // is our responsibility to drop the output.
            self.core().drop_future_or_output();
        } else if snapshot.has_join_waker() {
            // Notify the join handle. The previous transition obtains the
            // lock on the waker cell.
            self.wake_join();
        }
    }
/// Transitions the task's lifecycle to `Complete`. Notifies the
/// `JoinHandle` if it still has interest in the completion.
Transitions the task's lifecycle to `Complete`. Notifies the
`JoinHandle` if it still has interest in the completion.
Transitions the task ' s lifecycle to ` Complete ` . Notifies the ` JoinHandle ` if it still has interest in the completion .
fn transition_to_complete(&mut self) {
        // Transition the task's lifecycle to `Complete` and get a snapshot of
        // the task's sate.
        let snapshot = self.header().state.transition_to_complete();
        if !snapshot.is_join_interested() {
            // The `JoinHandle` is not interested in the output of this task. It
            // is our responsibility to drop the output.
            self.core().drop_future_or_output();
        } else if snapshot.has_join_waker() {
            // Notify the join handle. The previous transition obtains the
            // lock on the waker cell.
            self.wake_join();
        }
    }
fn transition_to_complete ( & mut self ) { // Transition the task's lifecycle to `Complete` and get a snapshot of // the task's sate. let snapshot = self . header ( ) . state . transition_to_complete ( ) ; if ! snapshot . is_join_interested ( ) { // The `JoinHandle` is not interested in the output of this task. It // is our responsibility to drop the output. self . core ( ) . drop_future_or_output ( ) ; } else if snapshot . has_join_waker ( ) { // Notify the join handle. The previous transition obtains the // lock on the waker cell. self . wake_join ( ) ; } }
Transitions the task's lifecycle to `Complete`.
Transitions the task ' s lifecycle to ` Complete ` .
&mut self
&mut self