unsafe fn force_remove_waiter(
        &mut self,
        wait_node: &mut ListNode<WaitQueueEntry>,
    ) {
        if !self.waiters.remove(wait_node) {
            // Panic if the address isn't found. This can only happen if the contract was
            // violated, e.g. the WaitQueueEntry got moved after the initial poll.
            panic!("Future could not be removed from wait queue");
        }
    }
/// Tries to remove a waiter from the wait queue, and panics if the
/// waiter is no longer valid.
Tries to remove a waiter from the wait queue, and panics if the
waiter is no longer valid.
Tries to remove a waiter from the wait queue and panics if the waiter is no longer valid .
unsafe fn force_remove_waiter(
        &mut self,
        wait_node: &mut ListNode<WaitQueueEntry>,
    ) {
        if !self.waiters.remove(wait_node) {
            // Panic if the address isn't found. This can only happen if the contract was
            // violated, e.g. the WaitQueueEntry got moved after the initial poll.
            panic!("Future could not be removed from wait queue");
        }
    }
unsafe fn force_remove_waiter ( & mut self , wait_node : & mut ListNode < WaitQueueEntry > , ) { if ! self . waiters . remove ( wait_node ) { // Panic if the address isn't found. This can only happen if the contract was // violated, e.g. the WaitQueueEntry got moved after the initial poll. panic ! ( " " ) ; } }
Tries to remove a waiter from the wait queue, and panics if the
waiter is no longer valid.
Tries to remove a waiter from the wait queue and panics if the waiter is no longer valid .
&mut self
wait_node
&mut ListNode<WaitQueueEntry>
&mut self
wait_node
&mut ListNode<WaitQueueEntry>