msys.sleep

March 26, 2020

Name

msys.sleep — When called in the scheduler thread, suspend the current session for the specified duration

Synopsis

msys.sleep(duration_in_seconds);

duration_in_seconds: number

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.