From 9f06132513da0e66556817228d00149b5fa90d22 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 21 Nov 2023 18:14:51 +0000 Subject: util.async: Expose default runner function This is purely for informational purposes, so it's possible to determine externally whether a runner is using the default runner function (which executes functions as work items) or a custom runner function. --- util/async.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/async.lua b/util/async.lua index a510f80d..b8d3bc69 100644 --- a/util/async.lua +++ b/util/async.lua @@ -305,5 +305,7 @@ return { set_nexttick = function(new_next_tick) next_tick = new_next_tick; end; set_schedule_function = function (new_schedule_function) schedule_task = new_schedule_function; end; + waiting_runners = waiting_runners; + default_runner_func = default_func; }; -- cgit v1.2.3