NAME

Fetch::Loop::Hyperman - run Fetch on a Hyperman::Loop

SYNOPSIS

use Fetch;

# inside a Hyperman worker: share the worker's own loop
my $ua = Fetch->new(loop => Hyperman->loop);
my $f  = $ua->get('https://upstream/api');
my $res = $f->get;   # awaits without blocking the worker's other conns

DESCRIPTION

Adapts a Hyperman::Loop - the per-worker event loop at the core of Hyperman - so Fetch's client requests run on the same loop that is serving inbound connections. This is the natural pairing: a Hyperman app making outbound HTTP/2 calls with the same non-blocking machinery it serves with. Pass a raw Hyperman::Loop as Fetch->new(loop => ...) and it is wrapped automatically.

new([$hyperman_loop])

Wrap the given loop, or make a fresh Hyperman::Loop->new.

loop

The underlying Hyperman::Loop.

install_await

Install $Fetch::Future::AWAIT so a bare $future->get pumps the loop (run until the future readies, then stop). Because Hyperman's run is re-entrant, awaiting from inside a running worker services other connections instead of blocking them.

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.