mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
12 lines
251 B
Lua
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
|
|
|