bytebox - v1.0.0
    Preparing search index...

    Type Alias TimePolicy

    TimePolicy: "virtual" | "real"

    How a fiber scheduled for the future is treated.

    virtual moves the scheduler's clock forward to the fiber's due time and runs it, so Thread.sleep costs no wall time. real leaves the clock alone, so Scheduler.drain stops at the first fiber that is not due yet and Scheduler.drainAsync waits for it.

    Workers pin Date.now() between I/O, so under real a program that sleeps without doing any I/O never becomes due inside one request. That is why virtual is the default.