MCPcopy Create free account
hub / github.com/base/base / queue

Method queue

crates/utilities/runtime/src/deterministic/executor.rs:128–130  ·  view source on GitHub ↗

Push a task ID onto the ready queue (called by `TaskWaker`).

(&self, id: u128)

Source from the content-addressed store, hash-verified

126
127 /// Push a task ID onto the ready queue (called by `TaskWaker`).
128 pub fn queue(&self, id: u128) {
129 self.ready.lock().unwrap().push(id);
130 }
131
132 /// Drain the entire ready queue into a `Vec` for the current polling round.
133 pub fn drain(&self) -> Vec<u128> {

Callers 2

insertMethod · 0.80
wake_by_refMethod · 0.80

Calls 2

lockMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected