Swoole\ConnectionPool->get(int $timeout)

4.x is outdated, please check the latest version 22.x


Latest version: pecl install openswoole-22.1.2

Declaration

<?php Swoole\ConnectionPool->get(int $timeout)

Parameters

timeout

Max waiting time of the get operation

Return

Description

Get a connection from the connection pool.

Since v4.7.0, you can pass parameter $timeout to control the timeout.

Example

Last updated on August 31, 2022