mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
Style cleanup
This commit is contained in:
parent
3c9881a478
commit
bb68da5e5b
1 changed files with 10 additions and 7 deletions
17
lib/init.lua
17
lib/init.lua
|
@ -294,13 +294,16 @@ function Promise:await()
|
|||
local resultLength
|
||||
local bindable = Instance.new("BindableEvent")
|
||||
|
||||
self:andThen(function(...)
|
||||
resultLength, result = pack(...)
|
||||
bindable:Fire(true)
|
||||
end, function(...)
|
||||
resultLength, result = pack(...)
|
||||
bindable:Fire(false)
|
||||
end)
|
||||
self:andThen(
|
||||
function(...)
|
||||
resultLength, result = pack(...)
|
||||
bindable:Fire(true)
|
||||
end,
|
||||
function(...)
|
||||
resultLength, result = pack(...)
|
||||
bindable:Fire(false)
|
||||
end
|
||||
)
|
||||
|
||||
local ok = bindable.Event:Wait()
|
||||
bindable:Destroy()
|
||||
|
|
Loading…
Reference in a new issue