Skip to content

Commit

Permalink
fix 133 setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankKai committed Apr 16, 2021
1 parent 767dc1d commit 9019429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zh-CN/README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4272,14 +4272,14 @@ const myPromise = Promise.resolve(Promise.resolve("Promise!"));
function funcOne() {
myPromise.then(res => res).then(res => console.log(res));
setTimeout(() => console.log("Timeout!", 0));
setTimeout(() => console.log("Timeout!"), 0);
console.log("Last line!");
}
async function funcTwo() {
const res = await myPromise;
console.log(await res);
setTimeout(() => console.log("Timeout!", 0));
setTimeout(() => console.log("Timeout!"), 0);
console.log("Last line!");
}
Expand Down

0 comments on commit 9019429

Please sign in to comment.