function Promise.spawn(Z)local h=Promise.new()task.spawn(Z,h:_getResolveReject())return h end

function Promise.spawn(func)
	local self = Promise.new()

	task.spawn(func, self:_getResolveReject())

	return self
end
