… | |
… | |
1406 | |
1406 | |
1407 | See C<poll_cb> for an example. |
1407 | See C<poll_cb> for an example. |
1408 | |
1408 | |
1409 | =item IO::AIO::poll_cb |
1409 | =item IO::AIO::poll_cb |
1410 | |
1410 | |
1411 | Process some outstanding events on the result pipe. You have to call this |
1411 | Process some outstanding events on the result pipe. You have to call |
1412 | regularly. Returns C<0> if all events could be processed, or C<-1> if it |
1412 | this regularly. Returns C<0> if all events could be processed (or there |
1413 | returned earlier for whatever reason. Returns immediately when no events |
1413 | were no events to process), or C<-1> if it returned earlier for whatever |
1414 | are outstanding. The amount of events processed depends on the settings of |
1414 | reason. Returns immediately when no events are outstanding. The amount of |
1415 | C<IO::AIO::max_poll_req> and C<IO::AIO::max_poll_time>. |
1415 | events processed depends on the settings of C<IO::AIO::max_poll_req> and |
|
|
1416 | C<IO::AIO::max_poll_time>. |
1416 | |
1417 | |
1417 | If not all requests were processed for whatever reason, the filehandle |
1418 | If not all requests were processed for whatever reason, the filehandle |
1418 | will still be ready when C<poll_cb> returns, so normally you don't have to |
1419 | will still be ready when C<poll_cb> returns, so normally you don't have to |
1419 | do anything special to have it called later. |
1420 | do anything special to have it called later. |
1420 | |
1421 | |