Changeset

13333:fa4143163e01

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.
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Nov 2023 18:14:51 +0000
parents 13332:17cb965e55b7
children 13334:aefcb6b4f47d
files util/async.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/async.lua	Tue Nov 21 18:13:42 2023 +0000
+++ b/util/async.lua	Tue Nov 21 18:14:51 2023 +0000
@@ -305,5 +305,7 @@
 
 	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;
 };