… | |
… | |
233 | Example: wait till there are no outstanding requests anymore: |
233 | Example: wait till there are no outstanding requests anymore: |
234 | |
234 | |
235 | IO::AIO::poll_wait, IO::AIO::poll_cb |
235 | IO::AIO::poll_wait, IO::AIO::poll_cb |
236 | while IO::AIO::nreqs; |
236 | while IO::AIO::nreqs; |
237 | |
237 | |
|
|
238 | =item IO::AIO::flush |
|
|
239 | |
|
|
240 | Wait till all outstanding AIO requests have been handled. |
|
|
241 | |
238 | =item IO::AIO::min_parallel $nthreads |
242 | =item IO::AIO::min_parallel $nthreads |
239 | |
243 | |
240 | Set the minimum number of AIO threads to C<$nthreads>. The default is |
244 | Set the minimum number of AIO threads to C<$nthreads>. The default is |
241 | C<1>, which means a single asynchronous operation can be done at one time |
245 | C<1>, which means a single asynchronous operation can be done at one time |
242 | (the number of outstanding operations, however, is unlimited). |
246 | (the number of outstanding operations, however, is unlimited). |