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.
function doingStuff(stuff = 'stuff', ms = 2000) {
return new Promise((resolve, reject) => {
setTimeout(() => resolve(stuff), ms);
});
}