fn push_task(&self, task: Rc< SpawnedTask >) {
        let mut queue = self.microtask_queue.borrow_mut();
        queue.push_back(task);

        // If the queue was previously empty, then we need to schedule
        // the queue to be drained.
        if queue.len() == 1 {
            self.wake();
        }
    }
// Pushes a task onto the queue
Pushes a task onto the queue
Pushes a task onto the queue
fn push_task(&self, task: Rc< SpawnedTask >) {
        let mut queue = self.microtask_queue.borrow_mut();
        queue.push_back(task);
        // If the queue was previously empty, then we need to schedule
        // the queue to be drained.
        if queue.len() == 1 {
            self.wake();
        }
    }
fn push_task ( & self , task : Rc < SpawnedTask > ) { let mut queue = self . microtask_queue . borrow_mut ( ) ; queue . push_back ( task ) ; // If the queue was previously empty, then we need to schedule // the queue to be drained. if queue . len ( ) == 1 { self . wake ( ) ; } }
Pushes a task onto the queue
Pushes a task onto the queue
&self
task
Rc< SpawnedTask >
&self
task
Rc< SpawnedTask >