Static methods

@:has_untypedstaticcreate(callb:() ‑> 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.

Variables

Methods

@:has_untypedsendMessage(msg:Dynamic):Void

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