stream_select
reactphp/event-loop
Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by seconds and microseconds
stream_select
(
?array &
$read
,
?array &
$write
,
?array &
$except
,
?
int $seconds
,
?
int $microseconds
=
null
):
int
|
false
}
$ret
= @
\stream_select
(
$read
,
$write
,
$except
,
$timeout
===
null
?
null
:
0
,
$timeout
);
if (
$except
) {
$write
=
\array_merge
(
$write
,
$except
);
src/StreamSelectLoop.php