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
template-implements
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

isClosed()

public isClosed() : bool
Attributes
#[Override]
Return values
bool

push()

public push(object $item) : bool
Parameters
$item : object
Attributes
#[Override]
Return values
bool

size()

public size() : int
Attributes
#[Override]
Return values
int
On this page

Search results