bytebox - v1.0.0
    Preparing search index...

    Interface DrainOptions

    interface DrainOptions {
        budget?: number;
        throwOnBudget?: boolean;
    }
    Index
    budget?: number

    Most fibers to run. Defaults to FIBER_BUDGET.fetch.

    Counted in fibers rather than milliseconds because this runtime exposes no readable CPU meter: Date.now() and performance.now() are both pinned between I/O, so nothing inside a request can measure elapsed time.

    throwOnBudget?: boolean

    Throws BudgetError instead of returning drained: false when the budget runs out.