Name
msys.sleep — When called in the scheduler thread, suspend the current session for the specified duration
Synopsis
msys.sleep(duration_in_seconds);
Description
When called in the scheduler thread, this function suspends the current session for the specified duration. When called in a secondary thread, or if called on the scheduler thread and suspension is not possible, this function blocks the calling thread for the specified duration in seconds.
msys.sleep(0.2)
Because this function is in the msys
namespace, an explicit require
is not necessary.
Was this page helpful?