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\Redis\Server::startSwoole\Runtime::enableCoroutine>
^SwooleLast updated: Mon, 26 Oct 2026

The Swoole\Runtime class

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

Introduction

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

Class synopsis

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

Table of Contents


<Swoole\Redis\Server::startSwoole\Runtime::enableCoroutine>
^SwooleLast updated: Mon, 26 Oct 2026