function Promise.prototype.andThenReturn(S,...)local z,J=pack(...)return S:_andThen(debug.traceback(nil,2),function()return unpack(J,1,z)end)end Promise.prototype.AndThenReturn=Promise.prototype.andThenReturn Promise.prototype.ThenReturn=Promise.prototype.andThenReturn
--[[
	Shorthand for an andThen handler that returns the given value.
]]
function Promise.prototype:andThenReturn(...)
	local length, values = pack(...)
	return self:_andThen(debug.traceback(nil, 2), function()
		return unpack(values, 1, length)
	end)
end
Promise.prototype.AndThenReturn = Promise.prototype.andThenReturn
Promise.prototype.ThenReturn = Promise.prototype.andThenReturn
