Skip to main content

try_peek_next_hold

Function try_peek_next_hold 

Source
pub fn try_peek_next_hold<M: Memory + Copy>(
    m: M,
    queue: u64,
    cursor: &mut Cursor,
) -> (i32, u64)
Expand description

Hold the next task in deadline order after cursor and advance it, so that a bounded scan can resume even after the tasks it passed have left. Returns 0 with no task at the end, EBUSY when contended.