OpenSwoole\Core\Coroutine\Pool\ClientPool->put

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


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Core\Coroutine\Pool\ClientPool->put($connection, $isNew = false)

Parameters

client

A client

is new

Is a new client.

Return

Description

Put the client back to client pool once it is not used by the current coroutine.

Last updated on February 28, 2026