table of contents
| Future::IO::Impl::IOAsync(3pm) | User Contributed Perl Documentation | Future::IO::Impl::IOAsync(3pm) |
NAME¶
"Future::IO::Impl::IOAsync" - implement "Future::IO" using "IO::Async"
DESCRIPTION¶
This module provides an implementation for Future::IO which uses IO::Async.
There are no additional methods to use in this module; it simply has to be loaded, and will provide the "Future::IO" implementation methods.
use Future::IO; use Future::IO::Impl::IOAsync; my $f = Future::IO->sleep(5); ...
LIMITATIONS¶
This module only provides a limited subset of the "poll" in Future::IO method API. It fully handles "POLLIN" and "POLLOUT" conditions, but is not able to report on "POLLHUP" and "POLLERR" events.
When a filehandle is at hangup condition it is reported as only "POLLIN", and when at error condition it is reported as only "POLLOUT". This should be sufficient for most purposes, and works fine for internally providing asynchronous reading and writing on regular filehandles, but may cause some odd behaviours if you are attempting to detect those conditions directly.
AUTHOR¶
Paul Evans <leonerd@leonerd.org.uk>
| 2026-02-21 | perl v5.40.1 |