This function returns a Promise that resolves after the given number of
milliseconds. It is commonly used to introduce delays in asynchronous
workflows.
Parameters
time_ms: number
The number of milliseconds to sleep.
Returns Promise<void>
A promise that resolves once the delay has elapsed.
Pauses execution for the specified duration.
This function returns a
Promisethat resolves after the given number of milliseconds. It is commonly used to introduce delays in asynchronous workflows.