AIO(3pm)
β¨ NAME β¨
AnyEvent::AIO β truly asynchronous file and directory I/O π
okay so bestie, this is the manual page for AnyEvent::AIO, which lives in the 3pm section (that's perl module land, iykyk). Let's get into it π«Ά
πΈ SYNOPSIS πΈ
use AnyEvent::AIO;
use IO::AIO;
# can now use any of the aio requests your IO::AIO module supports
# as long as you use an event loop supported by AnyEvent.
periodt. that's the whole vibe. two lines of use and you're off π
π¦ DESCRIPTION π¦
okay so first things first: this module is an AnyEvent user, which means you gotta make sure you actually use and run an event loop that's supported. no event loop, no magic, fr fr. π§
The way that loading this module just installs the necessary magic to seamlessly integrate IO::AIO into AnyEventβ¦ iconic. So you literally no longer need to concern yourself with calling IO::AIO::poll_cb or any of that stuff. You still can if you want β nobody's stopping you β but this module will do it in case you don't. it's giving "I got you bestie" π
The AnyEvent watcher can be disabled by executing undef $AnyEvent::AIO::WATCHER. and likeβ¦ if you do that, please notify the author of when and why you think this was necessary π (yes, for real, they want to know).
π SEE ALSO π
- AnyEvent
- Coro::AIO β for a more natural syntax. lowkey obsessed with that one if you want the smoother ride π
π AUTHOR π
Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/
π«Ά no cap, that's the whole page. go forth and do your async I/O, main character.
this was AIO(3pm) from User Contributed Perl Documentation, perl v5.34.0, 2022-04-16. bye bestie, drink water πβ¨π
π¦ where this page comes from
- debian bookworm: libanyevent-aio-perl 1.1-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libanyevent-aio-perl 1.1-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libanyevent-aio-perl 1.1-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libanyevent-aio-perl 1.1-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libanyevent-aio-perl 1.1-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms