Echo JS 0.11.0

<~>
sbruchmann 1072 days ago. link 3 points
tl;dr

const sleep = (ms)  => new Promise((resolve) => setTimeout(resolve, ms);

Replies

tracker1 1069 days ago. link 1 point
was about to post the same... tfa's example is more verbose than necessary.  I put this inlined at the top of anywhere I need it... usually when stubbing out requests in tests or while shimming api clients until the backing service is ready.