This is automatic generated document for things in Swow\Selector class
Class Selector
channel selector selects any action done which action can be “pushing/poping T into/from (may be different) channel”
This class is a generic class. Template T
Constants
Methods
Method commit
do select
any actions in selector will make this return
The first ready action wins. With no ready action the call waits for the timeout.
context switching may happen here
Param int $timeout timeout in milliseconds
Throws SelectorException on timeout or failure
Method fetch
Get the value of the last pop event.
Returns mixed the value
Throws \Error when no data is available: a push event, no commit, or a failed commit
Method getLastEvent
Get the event of the last successful commit.
Returns int the event, or EVENT_NONE
Method pop
add a “popping a T from $channel” action into selector
Method push
add a “pushing a T into $channel” action into selector