Will put a currently running async task to sleep for a specified delay in milliseconds.
Time is milliseconds to delay the task.
The promise to await on for the delay. A rejected promise represents an API violation.
// From within an async function, sleep 2 seconds.await async_sleep(2000); Copy
// From within an async function, sleep 2 seconds.await async_sleep(2000);
Will put a currently running async task to sleep for a specified delay in milliseconds.