Skip to main content

BatchedSignalOptions

type BatchedSignalOptions = object & BaseSignalOptions;

Type Declaration

NameTypeDescription
variant"batched"Batched signal variant
bufferSize?numberSpecify the buffer size for replay type signal
emitImmediatelyWhenFull?booleanEmit the signal immediately when the buffer is full and disgard the scheduled function to avoid losing data.
schedule()(callback) => voidScheduler used for batching Example const scheduler = (callback: () => void) => { setTimeout(callback, 50); };