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

    Class RingBuffer

    A fixed-size ring of readings for one signal, held by the caller beside the interpreter. This module owns no state: its own history would keep a poisoned observation across a recycle.

    Index
    capacity: number

    most readings kept; older ones are dropped

    • appends a reading, dropping the oldest past capacity; a non-finite value is ignored

      Parameters

      • value: number

      Returns void

    • oldest first; a copy, so a caller cannot mutate the ring through it

      Returns number[]