Search results
Sep 16, 2019 · Promise.all accepts an array of Promise objects, and returns a new Promise. The new Promise will resolve with an array of resolved values in the same places as the Promises were in the array. The new Promise will reject if any of the Promises that were passed in rejects.
Here's quick introduction to Promises. For more complete information, check out the API Reference. Creating a Promise. There are a few ways to create a Promise. The most common way is to call Promise.new: local function myFunction() return Promise.new(function(resolve, reject, onCancel) somethingThatYields() resolve("Hello world!") end)
Versatile, composable, predictable. Promises model asynchronous operations in a way that makes them delightful to work with. You can easily chain together multiple async functions and you don't have to worry about accidentally yielding.
Engine releases. Click on a year below to view all changes made to the Roblox engine in that year. 2011. 2012. 2013. 2014. 2015. 2016. 2017.
Fixes an issue with text overflowing in the Terrain Editor for the German version of Studio.
Roblox Studio gained two new, useful updates: disabled scripts will now show in black and white, and a new object, ViewportFrame, was released. January 25 – Roblox announces developer signups for the upcoming Pizza Party event in March 2019.
People also ask
How do I create a promise?
What is a promise in JavaScript?
Can a promise resolve an error?
How do I resolve a promise?
Why should you use promises?
How does a promise work?
Visit the latest release. Under Assets, click Promise.lua. Using Rojo? Put the file into your game directly. Using Roblox Studio? Open the file, copy its contents, and paste into a ModuleScript and call it Promise.