Promise...:IOAsync(3)
π¦ NAME π¦
okay so bestie, this page is Promise...:IOAsync(3), and it lives in the User Contributed Perl Documentation. The actual module is Promise::ES6::IOAsync β it gives you Promises/A+-compliant promises for IO::Async, and the spec URL is literally <https://github.com/promises-aplus/promises-spec> (yes, keeping the angle brackets exactly, iykyk). π
β¨ SYNOPSIS β¨
the whole vibe is:
my $loop = IO::Async::Loop->new();
my $loop_guard = Promise::ES6::IOAsync::SET_LOOP($loop);
# Now use Promise::ES6::IOAsync as you would plain Promise::ES6.
π DEPRECATION NOTICE π
okay, real talk: this module is deprecated and will go away eventually. Use use_event() instead, as described in Promise::ES6βs documentation. so donβt build your entire main character arc on it, mkay? πβ¨
πΈ DESCRIPTION πΈ
This module exposes the same functionality as Promise::ES6::AnyEvent, but for IO::Async rather than AnyEvent.
Hereβs the tea: AnyEvent assumes that an event loop is global, while IO::Async allows multiple concurrent event loops. In order to accommodate this difference in architecture, this module requires an active IO::Async::Loop object before it can be used. See SET_LOOP() below. ππ
π₯ FUNCTIONS π₯
π $guard = SET_LOOP( $LOOP ) π
This sets this moduleβs active IO::Async::Loop object. Itβs an internal global; if you try to set a loop while one is already set, an exception is thrown. no cap. π
This returns an opaque object that, when DESTROY()ed, will clear this moduleβs internal loop. so the guard is literally the vibe check for the loop. π«Άβ¨
xoxo, your Unix bestie π β this page is from the User Contributed Perl Documentation on perl v5.42.2, dated 2026-02-15. periodt. π
πΈ
π¦ where this page comes from
- alpine 3.24: perl-promise-es6-doc 0.28-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms