Swoole\Runtime::setHookFlags

Set hook flags for coroutine

説明

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

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

パラメータ

flags

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

戻り値

成功した場合に true を、失敗した場合に false を返します。