Suspend the execution of current thread until either the specified wait time is reached or any subscribed events happened.
Optional
Wait or sleep time. A negative number (-1) or undefined value means wait forever.
This API shall be used only with imperative thread. Mixing imperative and reactive API calls within a thread will raise an error during runtime.
Suspend the execution of current thread until either the specified wait time is reached or any subscribed events happened.