src/Leevel/Protocol/Coroutine.php
public function context(string $className): bool
    {
        if (!class_exists($className)) {
            return false;
        }

        if (method_exists($className, 'coroutineContext') &&
            true === $className::coroutineContext()) {
            return true;
        }

        return false;
    }
public function context(string $className): bool
    {
        if (!class_exists($className)) {
            return false;
        }

        if (method_exists($className, 'coroutineContext') &&
            true === $className::coroutineContext()) {
            return true;
        }

        return false;
    }
是否处于协程上下文.

@param string $className

@return bool