functions.php
Table of Contents
Functions
- synchronized() : T
- Invokes the given Closure while maintaining a lock from the provided mutex.
- createChannelPair() : Channel}
Functions
synchronized()
Invokes the given Closure while maintaining a lock from the provided mutex.
synchronized(Semaphore $semaphore, callable(mixed...): T $synchronized, mixed ...$args) : T
The lock is automatically released after the Closure returns.
Parameters
- $semaphore : Semaphore
- $synchronized : callable(mixed...): T
- $args : mixed
Tags
Return values
T —The return value of the Closure.
createChannelPair()
createChannelPair([int $bufferSize = 0 ]) : Channel}
Parameters
- $bufferSize : int = 0
-
Number of channel items to buffer in memory before back-pressure is applied.