php8.5
Home/ Manual/ swoole / channel/ Swoole\Channel::stats

Swoole\Channel::stats

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Get stats of swoole channel.

Description

Swoole\Channel::stats(): array

Get the numbers of queued elements and total size of the memory used by the queue.

Parameters Parameters

Return Values

The stats of the Swoole channel.

Source: reference/swoole/swoole/channel/stats.xml · from the official PHP manual (php/doc-en)