Static variables

staticread onlyevents:EventLoop

Static methods

staticcreate(job:() ‑> Void):Thread

staticinlinecreateWithEventLoop(job:() ‑> Void):Thread

staticcurrent():Thread

@:op(A == B)staticinlineequals(this:ThreadImpl, other:Thread):Bool

Available on macro

staticgetName(this:ThreadImpl):Null<String>

Available on hl

@:keepstaticprocessEvents():Void

Available on python, hl, cpp

staticreadMessage(block:Bool):Dynamic

Available on python, neko, cpp, cs, macro, java

@:value({ block : true })staticinlinereadMessage(block:Bool = true):Dynamic

Available on hl

staticrunWithEventLoop(job:() ‑> Void):Void

staticinlinesendMessage(this:ThreadImpl, msg:Dynamic):Void

staticsetName(this:ThreadImpl, name:String):Void

Available on hl

staticinlineyield():Void

Available on macro