function Promise.prototype.doneCall(A,c,...)assert(type(c)=="\102\117\110\099\116\105\111\110",string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\100\111\110\101\067\097\108\108"))local p,l=pack(...)return A:_finally(debug.traceback(nil,2),function()return c(unpack(l,1,p))end,true)end Promise.prototype.DoneCall=Promise.prototype.doneCall
--[[
	Calls a callback on `done` with specific arguments.
]]
function Promise.prototype:doneCall(callback, ...)
	assert(type(callback) == "function", string.format(ERROR_NON_FUNCTION, "Promise:doneCall"))
	local length, values = pack(...)
	return self:_finally(debug.traceback(nil, 2), function()
		return callback(unpack(values, 1, length))
	end, true)
end
Promise.prototype.DoneCall = Promise.prototype.doneCall
