function Promise.prototype.doneReturn(a,...)local Q,d=pack(...)return a:_finally(debug.traceback(nil,2),function()return unpack(d,1,Q)end,true)end Promise.prototype.DoneReturn=Promise.prototype.doneReturn
--[[
	Shorthand for a done handler that returns the given value.
]]
function Promise.prototype:doneReturn(...)
	local length, values = pack(...)
	return self:_finally(debug.traceback(nil, 2), function()
		return unpack(values, 1, length)
	end, true)
end
Promise.prototype.DoneReturn = Promise.prototype.doneReturn
