File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
problems/async-task-runner Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ If the number of tasks exceeds concurrency limit (which is passed to the TaskRun
4343Here's an example:
4444
4545` ` ` js
46- var r = new TaskRunner (3 );
46+ var runner = new TaskRunner (3 );
4747// use the exampleSimpleTask from above;
4848
49- r .push (exampleSimpleTask); // executes immediately
50- r .push (exampleSimpleTask); // executes immediately
51- r .push (exampleSimpleTask); // executes immediately
49+ runner .push (exampleSimpleTask); // executes immediately
50+ runner .push (exampleSimpleTask); // executes immediately
51+ runner .push (exampleSimpleTask); // executes immediately
5252
53- r .push (exampleSimpleTask); // should wait until one of the running tasks completes
54- r .push (exampleSimpleTask); // should wait until one of the running tasks completes
53+ runner .push (exampleSimpleTask); // should wait until one of the running tasks completes
54+ runner .push (exampleSimpleTask); // should wait until one of the running tasks completes
5555// ...
5656` ` `
You can’t perform that action at this time.
0 commit comments