Emulate all of Event's public properties.

Even the `@:noCompletion` ones.
This commit is contained in:
Joseph Cloutier
2023-03-02 14:36:39 -05:00
parent 9b9d433ce8
commit 5b0e798582

View File

@@ -609,8 +609,13 @@ class ThreadPool extends WorkOutput
} }
} }
@:access(lime.system.ThreadPool) @:access(lime.system.ThreadPool) @:forward(canceled)
private abstract PseudoEvent(ThreadPool) from ThreadPool { private abstract PseudoEvent(ThreadPool) from ThreadPool {
@:noCompletion @:dox(hide) public var __listeners(get, never):Array<Dynamic>;
private inline function get___listeners():Array<Dynamic> { return []; };
@:noCompletion @:dox(hide) public var __repeat(get, never):Array<Bool>;
private inline function get___repeat():Array<Bool> { return []; };
public function add(callback:Dynamic -> Void):Void { public function add(callback:Dynamic -> Void):Void {
function callCallback(state:State, output:WorkOutput):Void function callCallback(state:State, output:WorkOutput):Void
{ {