OpenSwoole\Coroutine::suspend

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.11.1

Declaration

<?php OpenSwoole\Coroutine::suspend(): bool

Parameters

Return

Description

Yield from the current coroutine and release the CPU to other coroutines.

Example

Last updated on February 28, 2026