Echo JS 0.11.0

<~>
tracker1 571 days ago. link 1 point
I tend to call it delay...

    const delay = (ms) => new Promise(r => setTimeout(r, ms));
    ...
    await delay(1000); // wait a second

Replies