Skip to main content

take_write

Function take_write 

Source
fn take_write(
    log: &mut HashMap<String, VecDeque<Instant>>,
    agent: &str,
    now: Instant,
    limit: usize,
) -> Result<(), u64>
Expand description

Counts a write by agent at now; over the limit it says in how many milliseconds one is free again.