NAME
Fetch::Loop::IOAsync - run Fetch on an IO::Async::Loop
SYNOPSIS
use IO::Async::Loop;
use Fetch;
my $loop = IO::Async::Loop->new;
my $ua = Fetch->new(loop => $loop); # auto-wrapped
my $f = $ua->get('https://example.com/');
$loop->loop_once until $f->is_ready;
print $f->get->content;
DESCRIPTION
Adapts an IO::Async::Loop so Fetch's requests run as part of an existing IO::Async program, sharing its one loop. Pass a raw IO::Async::Loop as Fetch->new(loop => ...) and it is wrapped automatically, or construct this adapter directly.
new([$io_async_loop])
Wrap the given loop, or make a fresh IO::Async::Loop->new.
loop
The underlying IO::Async::Loop.
install_await
Install $Fetch::Future::AWAIT so a bare $future->get pumps the loop (via loop_once) until the future is ready.
AUTHOR
LNATION <email@lnation.org>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by LNATION. This is free software, licensed under the Artistic License 2.0.