Thread
Methods
start
Starts the thread.
:start(): ()Throws
- Thread Error
join
Waits for the thread to finish.
:join(): ()Throws
- Thread Error
status
Returns the status of the thread.
:status(): "ready" | "running" | "dead"Throws
- Memory Error
receive
Immediately receive or yields until a value is sent from the thread.
:receive(): (...any)Throws
- Thread Error
- Memory Error
send
Sends a value to the thread.
:send(...any): ()Parameters
...any- The values to send to the thread.
Throws
- Thread Error
- Memory Error
Last updated on