Promise...nyEvent(3)

πŸ“¦ version 0.28, in alpine 3.24

πŸ¦‹ 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::IOAsync for those who prefer IO::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