Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
api:non-standard-lua-libs [2019/07/03 12:57]
forecaster [Modules]
api:non-standard-lua-libs [2020/05/23 17:37]
payonel [Operating System Facilities]
Line 150: Line 150:
  
 One additional function has been added: One additional function has been added:
-- `os.sleep(seconds:​ number)` which allows pausing a script for the specified amount of time. Note that signals will still be processed by event handlers while the sleep is active, i.e. you cannot pull signals that were accumulated during the sleep after it ended, since no signals will remain in the queue (or at least not all of them).+- `os.sleep(seconds:​ number)` which allows pausing a script for the specified amount of time. `os.sleep` consume events but registered event handlers and threads are still receiving events during the sleep. Rephrased, ​signals will still be processed by event handlers while the sleep is active, i.e. you cannot pull signals that were accumulated during the sleep after it ended, since no signals will remain in the queue (or at least not all of them).
  
 Some new functions that kind of fall into this category are available in [[api:​computer|the computer API]]. Some new functions that kind of fall into this category are available in [[api:​computer|the computer API]].