… | |
… | |
971 | poll => 'r', nice => 1, |
971 | poll => 'r', nice => 1, |
972 | cb => &IO::AIO::poll_cb); |
972 | cb => &IO::AIO::poll_cb); |
973 | |
973 | |
974 | =item IO::AIO::poll_wait |
974 | =item IO::AIO::poll_wait |
975 | |
975 | |
|
|
976 | If there are any outstanding requests and none of them in the result |
976 | Wait till the result filehandle becomes ready for reading (simply does a |
977 | phase, wait till the result filehandle becomes ready for reading (simply |
977 | C<select> on the filehandle. This is useful if you want to synchronously |
978 | does a C<select> on the filehandle. This is useful if you want to |
978 | wait for some requests to finish). |
979 | synchronously wait for some requests to finish). |
979 | |
980 | |
980 | See C<nreqs> for an example. |
981 | See C<nreqs> for an example. |
981 | |
982 | |
982 | =item IO::AIO::poll |
983 | =item IO::AIO::poll |
983 | |
984 | |
984 | Waits until some requests have been handled. |
985 | Waits until some requests have been handled. |
985 | |
986 | |
|
|
987 | Returns the number of requests processed, but is otherwise strictly |
986 | Strictly equivalent to: |
988 | equivalent to: |
987 | |
989 | |
988 | IO::AIO::poll_wait, IO::AIO::poll_cb |
990 | IO::AIO::poll_wait, IO::AIO::poll_cb |
989 | if IO::AIO::nreqs; |
|
|
990 | |
991 | |
991 | =item IO::AIO::flush |
992 | =item IO::AIO::flush |
992 | |
993 | |
993 | Wait till all outstanding AIO requests have been handled. |
994 | Wait till all outstanding AIO requests have been handled. |
994 | |
995 | |