We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f600d14 commit e5797aeCopy full SHA for e5797ae
lib/realtime/processQueue.ts
@@ -46,13 +46,13 @@ export class ProcessQueue extends EventEmitter implements JobWorker {
46
private eventTrigger: NodeJS.Timeout;
47
48
constructor({
49
- maximumLength,
50
- triggerTimeInterval,
+ maximumLength = 500,
+ triggerTimeInterval = 5000,
51
// execute on push
52
- proactiveMode,
+ proactiveMode = true,
53
// execute next work on finish
54
- continuousMode
55
- } = defaultOptions) {
+ continuousMode = true
+ }: ProcessQueueOptions = {}) {
56
super()
57
this.max = maximumLength
58
this.triggerTime = triggerTimeInterval
0 commit comments