Back to Trilium

Interface StaticEventEmitterIteratorOptions

docs/Script API/interfaces/Backend_Script_API._internal_.StaticEventEmitterIteratorOptions.html

0.102.21.7 KB
Original Source

Interface StaticEventEmitterIteratorOptions

interface StaticEventEmitterIteratorOptions {
close?: string[];
highWaterMark?: number;
lowWaterMark?: number;
signal?: AbortSignal;
}

Hierarchy (View Summary)

Index

Properties

close?highWaterMark?lowWaterMark?signal?

Properties

Optionalclose

close?: string[]

Names of events that will end the iteration.

OptionalhighWaterMark

highWaterMark?: number

The high watermark. The emitter is paused every time the size of events being buffered is higher than it. Supported only on emitters implementing pause() and resume() methods.

Default

Number.MAX_SAFE_INTEGERCopy

OptionallowWaterMark

lowWaterMark?: number

The low watermark. The emitter is resumed every time the size of events being buffered is lower than it. Supported only on emitters implementing pause() and resume() methods.

Default

1Copy

Optionalsignal

signal?: AbortSignal

Can be used to cancel awaiting events.

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Properties closehighWaterMarklowWaterMarksignal