Name
SPVM::IO::Select - Select
Usage
use IO::Select;
$select = IO::Select->new;
$select->add($fd0);
$select->add($fd1);
my $ready = $select->can_read($timeout);
Description
SPVM::IO::Select provides select utilities.
Fields
has handles : IntList;
Class Methods
new
static method new : IO::Select ();
Instance Methods
add
method add : int ($new_handle : int);
remove
method remove : int ($remove_handle : int);
exists
method exists : int ($check_handle : int);
handles
method handles : int[] ();
can_read
method can_read : int[] ($timeout : double);
can_write
method can_write : int[] ($timeout : double);
has_exception
method has_exception : int[] ($timeout : double);
See Also
Perl's IO::Select
IO::Select
is a Perl's IO::Select porting to SPVM.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License