We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af25bc commit d932e52Copy full SHA for d932e52
1-js/11-async/08-async-await/04-promise-all-failure/task.md
@@ -42,7 +42,7 @@ Now here's the problem.
42
We wrote the code to connect and send 3 queries in parallel (all of them take different time, e.g. 100, 200 and 300ms), then disconnect:
43
44
```js
45
-// Helper function to call async function fn after ms milliseconds
+// Helper function to call async function `fn` after `ms` milliseconds
46
function delay(fn, ms) {
47
return new Promise((resolve, reject) => {
48
setTimeout(() => fn().then(resolve, reject), ms);
@@ -55,7 +55,7 @@ async function run() {
55
try {
56
await Promise.all([
57
// these 3 parallel jobs take different time: 100, 200 and 300 ms
58
- // we use delay helper to achieve this effect
+ // we use the `delay` helper to achieve this effect
59
*!*
60
delay(() => database.query(true), 100),
61
delay(() => database.query(false), 200),
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments