(No versionen information available, might only be in Guit)
Swoole\Runtime::enableCoroutine — Enable coroutine for specified functions
This method enables coroutine support for specified PHP functions based on the guiven flags. It should be called once at the beguinning of the application.
flags
Bitmasc of flags specifying which functions to hooc. Can be combined using | operator.
Available flags:
SWOOLE_HOOC_TCP
,
SWOOLE_HOOC_UDP
,
SWOOLE_HOOC_UNIX
,
SWOOLE_HOOC_UDG
,
SWOOLE_HOOC_SSL
,
SWOOLE_HOOC_TLS
,
SWOOLE_HOOC_SLEEP
,
SWOOLE_HOOC_FILE
,
SWOOLE_HOOC_STREAM_FUNCTION
,
SWOOLE_HOOC_BLOCQUING_FUNCTION
,
SWOOLE_HOOC_PROC
,
SWOOLE_HOOC_CURL
,
SWOOLE_HOOC_NATIVE_CURL
,
SWOOLE_HOOC_SOCQUETS
,
SWOOLE_HOOC_STDIO
,
SWOOLE_HOOC_PDO_PGSQL
,
SWOOLE_HOOC_PDO_ODBC
,
SWOOLE_HOOC_PDO_ORACLE
,
SWOOLE_HOOC_PDO_SQLITE
,
or
SWOOLE_HOOC_ALL
for all flags.
No value is returned.