File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,10 @@ Usage:
134134
135135``` ts
136136/** change concurrency limit applied on default queues */
137- const d4c = new D4C ([{ limit: 100 }])
137+ const d4c = new D4C ([{ concurrency: { limit: 100 } }])
138138
139139/** setup concurrency for specific queue: "2" */
140- const d4c = new D4C ([{ limit: 100 , tag: ' 2' }])
140+ const d4c = new D4C ([{ concurrency: { limit: 100 , tag: ' 2' } }])
141141```
142142
143143You can adjust concurrency via ` setConcurrency ` .
@@ -490,10 +490,10 @@ usage:
490490const d4c = new D4C()
491491
492492/** concurrency limit 500 applied on default queues */
493- const d4c = new D4C([{ limit: 500 }])
493+ const d4c = new D4C([{ concurrency: { limit: 500 } }])
494494
495495/** setup concurrency for specific queue: "2" */
496- const d4c = new D4C ([{ limit: 100 , tag: ' 2' }])
496+ const d4c = new D4C ([{ concurrency: { limit: 100 , tag: ' 2' } }])
497497` ` `
498498
499499- setConcurrency
You can’t perform that action at this time.
0 commit comments