Skip to content

Commit 0e47cd0

Browse files
author
Muthukumar Subbiah
committed
adding solution
1 parent b44e91d commit 0e47cd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

problems/async-task-runner/Readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ If the number of tasks exceeds concurrency limit (which is passed to the TaskRun
4343
Here'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
```

0 commit comments

Comments
 (0)