Swoole\ConnectionPool->get(int $timeout)

Latest version: pecl install openswoole-4.11.1

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 March 31, 2022