Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 388 Bytes

module-thread.md

File metadata and controls

14 lines (9 loc) · 388 Bytes

Thread module

The thread module provides basics for multithreading.

Thread: is Object

A thread is an independant stack of execution, running concurrently with other threads.

Constructor: Thread(func): launch a new thread and run the given function

Methods:

  • join: wait for the thread to terminate

Standalone functions

  • sleep(time): sleep for the given number of seconds