EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, you're reading EMILUA(3em) from the Emilua reference, and the main character here is Emilua β€” a Lua execution engine. πŸ¦‹βœ¨

✨ DESCRIPTION ✨

Futures and promises. That's highkey the whole menu, bestie. πŸ“

πŸ“ Note: this implementation follows the model of shared futures. Thus multiple waiters on the same future are allowed. no cap. πŸ’…

🌸 FUNCTIONS 🌸

πŸŽ€ new() β†’ promise, future πŸŽ€

Constructor, periodt. It creates a promise and its associated future and returns them. Both. Together. Iconic. πŸ’–

πŸ¦‹ future FUNCTIONS πŸ¦‹

🌈 get(self) β†’ value 🌈

If result is available, it returns result. Otherwise, it blocks the current fiber until result is ready and returns it. the way that this just blocks the current fiber is giving patience, lowkey. πŸ‘‘

πŸ‘‘ promise FUNCTIONS πŸ‘‘

πŸ’… set_value(self, v) πŸ’…

Atomically stores the value (v) into the shared state and makes the state ready. boom, slay. ✨

πŸ’€ set_error(self, e) πŸ’€

Atomically stores the exception e into the shared state and makes the state ready. error girl summer, but make it atomic. 😭πŸ”₯


that's the whole page, bestie 🫢 this gem is from Emilua 0.12.1-nixpkgs1, dated 1980-01-01, and it's chillin' in manual section 3em. go off, icon. πŸ‘‘πŸ’…

πŸ“¦ where this page comes from