text: function sleep(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
  }
  
  async function sleeper() {
    console.log("Taking a break...");
    await sleep(10000);
    console.log("Two seconds later, showing sleep in a loop...");
  
    // Sleep in loop
    for (let i = 0; i < 5; i++) {
      if (i === 3) await sleep(10000);
      console.log(i);
    }
  }
  
  export default sleeper;
  