src/Leevel/Di/Container.php
public function removeCoroutine(?string $name = null): void
    {
        if (!$this->coroutine) {
            return;
        }

        if (null === $name) {
            if (isset($this->coroutineInstances[$this->coroutineUid()])) {
                unset($this->coroutineInstances[$this->coroutineUid()]);
            }
        } else {
            $name = $this->normalize($name);

            if ($this->existsCoroutine($name)) {
                unset($this->coroutineInstances[$this->coroutineUid()][$name]);
            }
        }
    }
public function removeCoroutine(?string $name = null): void
    {
        if (!$this->coroutine) {
            return;
        }

        if (null === $name) {
            if (isset($this->coroutineInstances[$this->coroutineUid()])) {
                unset($this->coroutineInstances[$this->coroutineUid()]);
            }
        } else {
            $name = $this->normalize($name);

            if ($this->existsCoroutine($name)) {
                unset($this->coroutineInstances[$this->coroutineUid()][$name]);
            }
        }
    }
删除协程上下文服务和实例.

@param string $name