mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-25 08:00:03 +00:00
commit
168239707b
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ local myFunction()
|
||||||
return Promise.new(function(resolve, reject, onCancel)
|
return Promise.new(function(resolve, reject, onCancel)
|
||||||
local connection
|
local connection
|
||||||
|
|
||||||
someEvent:Connect(function(...)
|
connection = someEvent:Connect(function(...)
|
||||||
connection:Disconnect()
|
connection:Disconnect()
|
||||||
resolve(...)
|
resolve(...)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue