From 5b0e798582ace87970860ffd29a83ba45c8768af Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Thu, 2 Mar 2023 14:36:39 -0500 Subject: [PATCH] Emulate all of `Event`'s public properties. Even the `@:noCompletion` ones. --- src/lime/system/ThreadPool.hx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lime/system/ThreadPool.hx b/src/lime/system/ThreadPool.hx index 8365bacdb..e961d995c 100644 --- a/src/lime/system/ThreadPool.hx +++ b/src/lime/system/ThreadPool.hx @@ -609,8 +609,13 @@ class ThreadPool extends WorkOutput } } -@:access(lime.system.ThreadPool) +@:access(lime.system.ThreadPool) @:forward(canceled) private abstract PseudoEvent(ThreadPool) from ThreadPool { + @:noCompletion @:dox(hide) public var __listeners(get, never):Array; + private inline function get___listeners():Array { return []; }; + @:noCompletion @:dox(hide) public var __repeat(get, never):Array; + private inline function get___repeat():Array { return []; }; + public function add(callback:Dynamic -> Void):Void { function callCallback(state:State, output:WorkOutput):Void {