\ManaPHP\CoroutineChannel

Summary

Methods
Properties
Constants
__construct()
push()
pop()
isEmpty()
isFull()
length()
capacity()
No public properties found
No constants found
No protected methods found
$_capacity
$_length
$_queue
N/A
No private methods found
No private properties found
N/A

Properties

$_capacity

$_capacity : integer

Type

integer

$_length

$_length : integer

Type

integer

$_queue

$_queue : \Swoole\Coroutine\Channel|\SplQueue

Type

\Swoole\Coroutine\Channel|\SplQueue

Methods

__construct()

__construct(integer  $capacity) 

Parameters

integer $capacity

push()

push(mixed  $data) : void

Parameters

mixed $data

pop()

pop(float  $timeout = null) : mixed

Parameters

float $timeout

Returns

mixed

isEmpty()

isEmpty() : boolean

Returns

boolean

isFull()

isFull() : boolean

Returns

boolean

length()

length() : integer

Returns

integer

capacity()

capacity()