function Promise.prototype.awaitValue(L,...)local C,u=pack(L:awaitStatus(...))local M=table.remove(u,1)assert(M==Promise.Status.Resolved,tostring(u[1]==nil and""or u[1]))return unpack(u,1,C-1)end

function Promise.prototype:awaitValue(...)
	local length, result = pack(self:awaitStatus(...))
	local status = table.remove(result, 1)

	assert(
		status == Promise.Status.Resolved,
		tostring(result[1] == nil and "" or result[1])
	)

	return unpack(result, 1, length - 1)
end
