php8.5
Home/ Manual/ swoole / runtime/ Swoole\Runtime::setHookFlags

Swoole\Runtime::setHookFlags

PHP function Edit on GitHub ✎

Set hook flags for coroutine

Description

Swoole\Runtime::setHookFlags(int $flags): bool

Sets the hook flags for coroutine support. This dynamically changes the hook flags at runtime.

Parameters

flags

Bitmask of flags specifying which functions to hook. Same flags as enableCoroutine.

Return Values

Success

Source: reference/swoole/swoole/runtime/setHookFlags.xml · from the official PHP manual (php/doc-en)