This is automatic generated document for things in Swow\Channel class
Class Channel
channel transfers information across coroutines
This class is a generic class. Template T
Methods
Method __construct
Method __debugInfo
Returns array<string, mixed>
debug information for var_dump
Method close
Method getCapacity
Method getLength
Method hasConsumers
Method hasProducers
Method isAvailable
Method isEmpty
Method isFull
Method isReadable
Method isWritable
Method pop
pop data from channel
context switching happens here when channel is empty, context switching may also happen at this even channel is not empty.
Param int
$timeout in microseconds
Returns T
$data
Method push
push data into channel
context switching happens here when channel is full, context switching may also happen at this even channel is not full.