I created a dummy async function (JS) to use when testing out ideas. I love to pop open CodeRunner and mess around with different patterns and syntax and having a ready-to-go async function available is really handy.

1function doingStuff(stuff = 'stuff', ms = 2000) {
2 return new Promise((resolve, reject) => {
3 setTimeout(() => resolve(stuff), ms);
4 });
5}