Echo JS 0.11.0

<~>

salvietta 413 days ago. link 1 point
Okay, you got me there.We are old generation programmers still trying to bring some C++ functions back into javascript ;-)
The contentious sleep or delay mechanism in programming languages sparks ongoing discussions. While some advocate for triggering a specific functionality through a signal or callback, others contend that occasional arbitrary delays can be beneficial. In my view, individual preferences hold sway, and no single rule can dictate practices in this ever-evolving industry.
tracker1 414 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