Method | Description | |
---|---|---|
addSignal ( $signal, $callback ) : boolean | Add signal handler. | |
removeSignal ( $signal ) | Remove signal handler. |
Method | Description | |
---|---|---|
streamSelect ( array &$read, array &$write, integer | null $timeout ) : integer | false | Emulate a stream_select() implementation that does not break when passed empty stream arrays. |
protected streamSelect ( array &$read, array &$write, integer | null $timeout ) : integer | false | ||
$read | array | |
$write | array | |
$timeout | integer | null | Activity timeout in microseconds, or null to wait forever. |
return | integer | false | The total number of streams that are ready for read/write. Can return false if stream_select() is interrupted by a signal. |