Variables

Methods

@:has_untypedsendMessage (msg:Dynamic):Void

Send a message to the thread queue. This message can be read by using readMessage.

Static methods

@:has_untypedstaticcreate (callb:Void ‑> Void):Thread

Creates a new thread that will execute the callb function, then exit.

@:has_untypedstaticcurrent ():Thread

Returns the current thread.

@:has_untypedstaticreadMessage (block:Bool):Dynamic

Reads a message from the thread queue. If block is true, the function blocks until a message is available. If block is false, the function returns null if no message is available.