search/
Start typing to search packages!
package_2
vow
By @nazumahk
Roblox
MirroredVow
A modern, high-performance, strictly-typed Promise/A+ implementation for Luau in Roblox.
Features
- Strictly Typed: Full
--!strictmode compatibility, passing generic Types smoothly. - Task Library Powered: Uses Roblox's modern
tasklibrary for optimal scheduling. - Advanced Combinators: Fully functional methods like
all,race,some,allSettled,fold, andeach. - Cancellation Propagation: Robust up/down tree cancellation handling.
- Structured Error Handling: Includes a highly detailed
Vow.Errortype giving stack traces, structured contexts, and nested parent errors.
Installation
Add to your wally.toml:
[dependencies]
Vow = "nazumahk/vow@1.0.0"
Quick Start
local Vow = require(path.to.Vow)
local myVow = Vow.new(function(resolve, reject, onCancel)
local task = task.delay(1, function()
resolve("Async Task Complete!")
end)
onCancel(function()
task.cancel(task)
end)
end)
myVow:andThen(function(result)
print(result) -- "Async Task Complete!"
end):catch(function(err)
warn("Failed:", err)
end)
Documentation
- Why Use Vow? -- Benefits and Case Studies
- Technical Architecture -- Internal Design & Optimizations
- API Reference -- Full Method Specification
License
MIT
Package Details
Install command (Click to copy)
Version
1.0.1
License
MIT
Safe for commercial use
Automated license review — not legal advice.
