Merge pull request #28 from FableRBX/patch-1

Update Tour.md
This commit is contained in:
eryn L. K 2020-06-10 16:57:36 -04:00 committed by GitHub
commit 168239707b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ local myFunction()
return Promise.new(function(resolve, reject, onCancel)
local connection
someEvent:Connect(function(...)
connection = someEvent:Connect(function(...)
connection:Disconnect()
resolve(...)
end)
@ -179,4 +179,4 @@ If a cancelled Promise has any consumers itself, those Promises are also cancell
Resolving a Promise with a Promise will cause the resolving Promise to become a consumer of the chained Promise, so if the chained Promise becomes cancelled then the resolving Promise will also become cancelled.
If you call `resolve` with a Promise within a Promise which is already cancelled, the passed Promise will be cancelled if it has no other consumers as an optimization.
If you call `resolve` with a Promise within a Promise which is already cancelled, the passed Promise will be cancelled if it has no other consumers as an optimization.