Swoole\ConnectionPool->get(int $timeout)

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