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
Table of Contents
Interfaces
Methods
- __construct() : mixed
- close() : void
- isClosed() : bool
- pop() : T|null
- push() : bool
- size() : int
Methods
__construct()
public
__construct(int $capacity) : mixed
Parameters
- $capacity : int
close()
public
close() : void
isClosed()
public
isClosed() : bool
Return values
boolpop()
public
pop(Duration $timeout) : T|null
Parameters
- $timeout : Duration
Return values
T|nullpush()
public
push(object $item) : bool
Parameters
- $item : object
Return values
boolsize()
public
size() : int