Skip to content

Commit 95674b5

Browse files
authored
Q34 solution improvement
1 parent 6bad396 commit 95674b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

challenges/async.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,8 @@ function asyncFunc(data, delay){
12261226
12271227
function* gen() {
12281228
// async function
1229-
const num1 = yield new asyncFunc(2, 1000);
1230-
const num2 = yield new asyncFunc(1, 2000);
1229+
const num1 = yield asyncFunc(2, 1000);
1230+
const num2 = yield asyncFunc(1, 2000);
12311231
console.log(num1 + num2); // 3 (2 + 1)
12321232
}
12331233

0 commit comments

Comments
 (0)