Nexus API Reference

FiberChannel
in package
implements Channel

FinalYes

Non-blocking, single-fiber channel backed by SplQueue. `pop()` ignores the timeout — under FiberRuntime PDO will block the fiber anyway, so adding a coroutine-style suspend here is pointless.

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