BatchedSignalOptions
type BatchedSignalOptions = object & BaseSignalOptions;
Type declaration
| Name | Type | Description |
|---|---|---|
bufferSize? | number | Specify the buffer size for replay type signal |
emitImmediatelyWhenFull? | boolean | Emit the signal immediately when the buffer is full and disgard the scheduled function to avoid losing data. |
schedule() | (callback) => void | Scheduler used for batching Example const scheduler = (callback: () => void) => { setTimeout(callback, 50); }; |
variant | "batched" | Batched signal variant |