Promise...nyEvent(3)
π¦ Promise::ES6::AnyEvent(3) π¦
okay so first thing's first: this page lives in the User Contributed Perl Documentation section (that's the manual name, bestie, iykyk) π
β¨ NAME β¨
Promise::ES6::AnyEvent β literally Promises/A+-compliant promises π (spec's over at <https://github.com/promises-aplus/promises-spec>, go read it, it's giving source of truth)
π¨ DEPRECATION NOTICE π¨
ngl this is the sad part π β this module is deprecated and will go away eventually. Like, fr fr, it's on its way out.
So instead, use use_event() instead, exactly as described in Promise::ES6's documentation. slay, moving on π«Ά
π DESCRIPTION π
So here's the vibe: this is a subclass of Promise::ES6, and what it does is incorporate AnyEvent in order to implement full Promises/A+ compliance. iconic behaviour, honestly π
Specifically? This class defers execution of resolve and reject callbacks to the end of the current event loop iteration. The way it justβ¦ waits. main character energy β
π SEE ALSO π
- This distribution also includes
Promise::ES6::IOAsyncfor those who preferIO::Asyncβ pick your fave, no judgement π - CPAN's Promises, AnyEvent::Promises, and AnyEvent::XSPromises all provide functionality similar to this class's β¨ (so like, you got options, bestie)
lowkey reminder: deprecated module, use use_event() instead β don't come for me, that's just what the page says π
okay that's the whole thing, mwah π β brought to you by perl v5.42.2, dated 2026-02-15, and yes the manual name is still User Contributed Perl Documentation, 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