aboutsummaryrefslogtreecommitdiff
path: root/builtin/async/mainmenu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/async/mainmenu.lua')
-rw-r--r--builtin/async/mainmenu.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/builtin/async/mainmenu.lua b/builtin/async/mainmenu.lua
new file mode 100644
index 000000000..0e9c222d1
--- /dev/null
+++ b/builtin/async/mainmenu.lua
@@ -0,0 +1,9 @@
+core.log("info", "Initializing asynchronous environment")
+
+function core.job_processor(func, serialized_param)
+ local param = core.deserialize(serialized_param)
+
+ local retval = core.serialize(func(param))
+
+ return retval or core.serialize(nil)
+end