local function o(o,D,Z,r)return function(...)local H,I,s=runExecutor(o,D,...)if H then Z(unpack(s,1,I))else r(s[1])end end end local function D(o)return next(o)==nil end

local function createAdvancer(traceback, callback, resolve, reject)
	return function(...)
		local ok, resultLength, result = runExecutor(traceback, callback, ...)

		if ok then
			resolve(unpack(result, 1, resultLength))
		else
			reject(result[1])
		end
	end
end

local function isEmpty(t)
	return next(t) == nil
end
