diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-11-21 18:14:51 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-11-21 18:14:51 +0000 |
commit | 9f06132513da0e66556817228d00149b5fa90d22 (patch) | |
tree | 78a9b9161854649e7c700f77dad5e755d8f1930b | |
parent | ac680a900ea17ac70ca2de94bc52f2c9cf5a2ace (diff) | |
download | prosody-9f06132513da0e66556817228d00149b5fa90d22.tar.gz prosody-9f06132513da0e66556817228d00149b5fa90d22.zip |
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.
-rw-r--r-- | util/async.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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; }; |