@laserware/stasis
    Preparing search index...

    Variable buffersConst

    buffers: {
        dropping<T>(limit?: number): Buffer<T>;
        expanding<T>(limit?: number): Buffer<T>;
        fixed<T>(limit?: number): Buffer<T>;
        none<T>(): Buffer<T>;
        sliding<T>(limit?: number): Buffer<T>;
    }

    Provides some common buffers

    Type declaration

    • dropping: function
      • Same as fixed but Overflow will silently drop the messages.

        Type Parameters

        • T

        Parameters

        • Optionallimit: number

        Returns Buffer<T>

    • expanding: function
      • Like fixed but Overflow will cause the buffer to expand dynamically.

        Type Parameters

        • T

        Parameters

        • Optionallimit: number

        Returns Buffer<T>

    • fixed: function
      • New messages will be buffered up to limit. Overflow will raise an Error. Omitting a limit value will result in a limit of 10.

        Type Parameters

        • T

        Parameters

        • Optionallimit: number

        Returns Buffer<T>

    • none: function
      • No buffering, new messages will be lost if there are no pending takers

        Type Parameters

        • T

        Returns Buffer<T>

    • sliding: function
      • Same as fixed but Overflow will insert the new message at the end and drop the oldest message in the buffer.

        Type Parameters

        • T

        Parameters

        • Optionallimit: number

        Returns Buffer<T>