drupflare/worker - v1.0.0
    Preparing search index...

    Class RingBuffer

    A fixed-size ring of readings for one signal.

    One per signal, held by the caller in src/site-do.ts alongside the interpreter, because this module is not allowed to own state -- a tripwire that kept its own history would keep a poisoned observation alive across a recycle, which is the failure the whole layer exists to survive.

    samples() returns oldest-first, matching the order every check in this file already expects.

    Index
    capacity: number
    • oldest first; a copy, so a caller cannot mutate the ring through it

      Returns number[]