summaryrefslogtreecommitdiff
path: root/builtin/async/mainmenu.lua
blob: 0e9c222d167096e64b9da15e5cf3af60a3920819 (plain)
1
2
3
4
5
6
7
8
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