Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\RuntimeSwoole\Runtime::getHookFlags>
^Swoole\RuntimeLast updated: Mon, 26 Oct 2026

Swoole\Runtime::enableCoroutine

(No version information available, might only be in Git)

Swoole\Runtime::enableCoroutine — Enable coroutine for specified functions

Description

public static function Swoole\Runtime::enableCoroutine(int $flags = SWOOLE_HOOK_ALL): void

This method enables coroutine support for specified PHP functions based on the given flags. It should be called once at the beginning of the application.

Return Values

No value is returned.


<Swoole\RuntimeSwoole\Runtime::getHookFlags>
^Swoole\RuntimeLast updated: Mon, 26 Oct 2026