const dummyfunction = async () => { for (item of items) { // Until promise returns, // The loop waits here! await turtle(); } }