Nexus API Reference

SwooleChannel
in package
implements Channel

FinalYes

Coroutine-aware bounded channel. `pop()` suspends the current coroutine until either an item is pushed or the timeout elapses.

Tags
template

T of object

template-implements

Channel<T>

psalm-api

Table of Contents

Interfaces

Channel

Methods

__construct()  : mixed
close()  : void
isClosed()  : bool
pop()  : T|null
push()  : bool
size()  : int

Methods

__construct()

public __construct(int $capacity) : mixed
Parameters
$capacity : int

push()

public push(object $item) : bool
Parameters
$item : object
Return values
bool

        
On this page

Search results