The Swoole\Runtime class

Introduction

Swoole\Runtime provides coroutine support for various PHP functions through hook mechanism, allowing synchronous code to work asynchronously in coroutine environment.

Class synopsis

Swoole\Runtime
class Swoole\Runtime {
/* Methods */
public static void enableCoroutine(int $flags = SWOOLE_HOOK_ALL)
public static int getHookFlags()
public static bool setHookFlags(int $flags)
}
Table of Contents