{"id":"cometahn1042f/promise","name":"promise","scope":"cometahn1042f","platform":"roblox","description":"Promise For Roblox.","version":"0.1.3","latest":"0.1.3","versions":["0.1.0","0.1.1","0.1.2","0.1.3"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"ef7e7fd238b7a7ca0df2f821a49a19b55b859b870c3a88b208a97ea0684e3106","likes":0,"downloads":0,"install":"forest install cometahn1042f/promise","url":"https://forest.dev/p/roblox/cometahn1042f/promise","files":"https://api.forest.dev/ai/package/roblox/cometahn1042f/promise/files","readme":"# Promise\n\nPromise is a feature-complete asynchronous promise library written in strict Luau, supporting cancellation propagation, consumer tracking, and unhandled rejection detection.\n\n## Documentation Index\n\n- [API Reference](file:///c:/Lua/Libraries/Promise/docs/api-reference.md): Promise construction, combinators, and chaining.\n- [Architecture & Design](file:///c:/Lua/Libraries/Promise/docs/architecture-and-design.md): State transitions and consumer reference counting.\n- [Performance & Memory Profile](file:///c:/Lua/Libraries/Promise/docs/performance-and-memory.md): Asynchronous scheduling with task.defer.\n- [Failure Modes & Exception Guarantees](file:///c:/Lua/Libraries/Promise/docs/failure-modes.md): Unhandled rejection warnings and cancellation rules.\n- [Executable Examples](file:///c:/Lua/Libraries/Promise/docs/examples.md): Async operations, chaining, and error handling patterns.\n\n## Quick Start\n\n```luau\nlocal Promise = require(path.to.Promise)\n\nlocal function fetchData(): Promise\n    return Promise.new(function(resolve, reject)\n        task.wait(1)\n        resolve(\"Payload\")\n    end)\nend\n\nfetchData():andThen(function(data)\n    print(\"Received:\", data)\n----------------------------------------\nend):catch(function(err)\n    warn(\"Error:\", err)\nend)\n```\n","readmeTruncated":false}