Releases: morgann1/promise-luau
Releases 路 morgann1/promise-luau
Release list
v4.1.0
Added
- The library is written in strict Luau and exports generic types:
Promise<T...>,AnyPromise,Status,Error,ErrorKind,Executor<T...>, andSignalLike<T...>. See the readme for how far the types follow a chain.
Changed
- The source moved from
lib/init.luatosrc/init.luau. - The Wally package now contains only the library,
default.project.json, the license, the readme, and the changelog. Promise.defernow usestask.deferinstead of waiting for the nextHeartbeat. This has different behavior: while the deferred code will still run at the end of the frame, it runs alongside other Lua wake-ups which moves its position in the frame. Also, if you callPromise.deferfrom inside of an already-deferred thread/Promise, the code will run after your current thread/Promise is finished, during the same frame, rather than on the next frame.Promise.delaynow wrapstask.delay. This shouldn't result in any noticeable behavior changes, but changes in behavior are still possible as we don't have direct control over how Roblox's task scheduler works.