SinkOptions
Options for creating an update sink.
Properties
concurrency
ts
concurrency?: number;
Concurrency limit of the runner. Specifies how many updates should be processed in parallel at maximum.
Note that this is done using a best-effort approach. If Telegram ever returns more updates than requested (which should not ever happen), this limit can be exceeded.
timeout
ts
timeout?: { milliseconds: number; handler: (update: Y, task: Promise<void>) => void };
Timeout options. Consist of a duration in milliseconds and a handler.