Swoole\Coroutine::suspend

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.9.1

Declaration

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

Parameters

Return

Description

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

Example