src/Leevel/Di/Container.php
protected function coroutineContext($instance): bool
    {
        if (!$this->coroutine) {
            return false;
        }

        if (is_object($instance)) {
            $instance = get_class($instance);
        }

        return $this->coroutine->context($instance);
    }
protected function coroutineContext($instance): bool
    {
        if (!$this->coroutine) {
            return false;
        }

        if (is_object($instance)) {
            $instance = get_class($instance);
        }

        return $this->coroutine->context($instance);
    }
是否处于协程上下文.

@param mixed $instance

@return bool