Promise...:Future(3)

πŸ“¦ version 0.28, in alpine 3.24

🌸 Promise...:Future(3) 🌸

okay so welcome to the Promise...:Future(3) page from User Contributed Perl Documentation β€” yes bestie, we’re doing Perl promise lore today and it’s lowkey iconic 🫢


✨ NAME ✨

Promise::ES6::Future β€” the little translator that handles conversion to/from Future, periodt πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

This module is literally the go-between for promises and Future instances. It gives you the logic to convert between them, no cap ✨

πŸ’– FUNCTIONS πŸ’–

πŸŽ€ $promise = from_future( $FUTURE )

Returns a <Promise:ES6> instance from the given $FUTURE. (If $FUTURE is not a Future instance, $FUTURE is returned.) 🫢

πŸ¦‹ $future = to_future( $PROMISE )

Returns a Future instance from the given $PROMISE. (If $PROMISE is a Future instance, $PROMISE is returned.) πŸ’…

Note that this function can work with promise objects that aren’t Promise::ES6 instances. In fact, anything that isn’t a Future instance will cause this function to create a new Future. That’s the whole vibe check β€” no extra conditions, fr fr 🌈


mwah πŸ’‹ this page is from perl v5.42.2, dated 2026-02-15, and it’s filed under Promise...:Future(3) β€” bye bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from