Promise...:Future(3)
πΈ 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
- 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