mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
Update Examples.md
This commit is contained in:
parent
9b17c3e1a3
commit
3d53e7a364
1 changed files with 1 additions and 7 deletions
|
@ -60,13 +60,7 @@ We take advantage of Promise chaining by returning Promises from the `finally` h
|
|||
local Promise = require(game.ReplicatedStorage.Promise)
|
||||
local TweenService = game:GetService("TweenService")
|
||||
|
||||
local function sleep(seconds)
|
||||
return function()
|
||||
return Promise.async(function(resolve)
|
||||
resolve(wait(seconds))
|
||||
end)
|
||||
end
|
||||
end
|
||||
local sleep = Promise.promisify(wait)
|
||||
|
||||
local function apply(obj, props)
|
||||
for key, value in pairs(props) do
|
||||
|
|
Loading…
Reference in a new issue