AIO(3pm)

πŸ“¦
version 1.1 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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