aboutsummaryrefslogtreecommitdiff
path: root/builtin/async/init.lua
blob: 3803994d6e39e7c25fffc1bf12acb618856fe834 (plain)
1
2
3
4
5
6
7
8
9
10
11

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