Variable ZLogBuffer

ZLogBuffer: {
    drainer(next) => Drainer;
}

Type declaration

  • drainer:function
    • Builds a log buffer drainer function.

      Parameters

      • next: ((this, atOnce) => Promise<[Entry, ...Entry[]]>)

        A function retrieving the next buffer entries to drain. Accepts the number of entries to train as its only parameter, and returns a promise resolving to non-empty array of entries to drain.

          • (this, atOnce): Promise<[Entry, ...Entry[]]>
          • Parameters

            • this: void
            • atOnce: number

            Returns Promise<[Entry, ...Entry[]]>

      Returns Drainer

      A promise resolved to the next buffer entry. I.e. to the oldest buffered message entry.

Generated using TypeDoc