minetest/builtin/async/init.lua
2021-08-28 12:15:12 +02:00

12 lines
251 B
Lua

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