… | |
… | |
14 | aio_read $fh, 0, 1_000_000, my $buf, 0 |
14 | aio_read $fh, 0, 1_000_000, my $buf, 0 |
15 | or die "aio_read: $!"; |
15 | or die "aio_read: $!"; |
16 | aio_close $fh; |
16 | aio_close $fh; |
17 | |
17 | |
18 | =head1 DESCRIPTION |
18 | =head1 DESCRIPTION |
|
|
19 | |
|
|
20 | This module is an L<AnyEvent> user, you need to make sure that you use and |
|
|
21 | run a supported event loop. |
19 | |
22 | |
20 | This module implements a thin wrapper around L<IO::AIO|IO::AIO>. All of |
23 | This module implements a thin wrapper around L<IO::AIO|IO::AIO>. All of |
21 | the functions that expect a callback are being wrapped by this module. |
24 | the functions that expect a callback are being wrapped by this module. |
22 | |
25 | |
23 | The API is exactly the same as that of the corresponding IO::AIO routines, |
26 | The API is exactly the same as that of the corresponding IO::AIO routines, |