Future...IOAsync(3pm)
β¨ NAME β¨
Future::IO::Impl::IOAsync β it's the glow-up that makes Future::IO run on top of IO::Async, bestie π
(also filed under "User Contributed Perl Documentation", which is where you found this, so hi π«Ά)
πΈ DESCRIPTION πΈ
Okay so here's the tea π: this module is an implementation for Future::IO that does all its heavy lifting with IO::Async. That's the whole plot. No cap.
And the best part? There are no extra methods for you to learn, bestie. Literally none. You just load it, it clocks in, and it quietly hands Future::IO all the implementation methods it needs. Main character energy, zero demands. π
use Future::IO;
use Future::IO::Impl::IOAsync;
my $f = Future::IO->sleep(5);
...
That's it. That's the vibe. Load it, and suddenly your Future::IO calls are being served by IO::Async. Slay. β¨
π LIMITATIONS π
Okay so not everything is perfect and we need to be fr fr about it. π
This module only provides a limited subset of the poll in Future::IO method API. Here's the breakdown:
POLLINandPOLLOUTconditions β fully handled, we got you πPOLLHUPandPOLLERRevents β not able to report on these, bestie, it's just not in the cards π
So when a filehandle is at hangup condition, it gets reported as onlyPOLLIN. And when it's at error condition, it gets reported as onlyPOLLOUT.
Now, is that a problem? Honestly, for most purposes it's totally sufficient β it works fine for internally providing asynchronous reading and writing on regular filehandles. π«Ά
But if you're out here trying to detect those conditions directly yourself? Yeah, you might get some odd behaviours. Consider yourself warned, iykyk. π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β thank you for your service, king π
And that's a wrap on this little page from perl v5.40.1, dated 2026-02-21. Stay asynchronous, stay hydrated, and remember: load the module and let it cook. π¦π
π¦ where this page comes from
- ubuntu stonking: libio-async-perl 0.805-1 Β· 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