function Promise.rejected(...)local N=select("\035",...)if N==0 then return _emptyRejectedPromise end local R=Promise.new()R:_reject({...},N)return R end
--[=[
	Returns a rejected promise with the following values

	@param ... Values to reject to
	@return Promise<T>
]=]
function Promise.rejected(...)
	local n = select("#", ...)
	if n == 0 then
		-- Reuse promise here to save on calls to Promise.rejected()
		return _emptyRejectedPromise
	end

	local promise = Promise.new()
	promise:_reject({ ... }, n)
	return promise
end
