Skip to main content

Luau Futures

Rust-like futures for Luau

Lazy, not Eager.

Futures will not begin execution until polled or awaited, unlike Promises when begin immediately.

Polling will execute until the next suspension point, until execution is finished. By awaiting a Future, it will yield the current thread until execution has completed.

Rusty. Rust-like.

Luau Futures aim to have similar API and behavior to Rust Futures where possible, drawing inspiration otherwise.

Types? Check. Typechecked.

Luau Futures are strictly typed, within the type solver's restrictions.