Swoole\Coroutine\Channel->isFull()

Swoole Coroutine Channel isFull

Declaration

<?php
Swoole\Coroutine\Channel->isFull(): bool

Parameters

None

Return

Returns true if the channel is full, false otherwise.

Description

Determine whether the current channel is full.

Example

<?php
Co\run(function() {

    $data = 'Hello World!';

    $chan = new chan(1);
    $chan->push($data);
    $pop = $chan->pop();

    var_dump($chan->isFull());

});