Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:AddPromise does not cancel a Promise object returned by Promise.delay #208

Open
LDGerrits opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@LDGerrits
Copy link

LDGerrits commented Dec 5, 2024

Trove:AddPromise does not cancel a promise object returned by Promise.delay when the trove object is cleaned up or when the Promise object is removed. This is unexpected behavior given the documentation for Trove:AddPromise (i) and Promise.delay (ii):

(i) "Gives the promise to the trove, which will cancel the promise if the trove is cleaned up or if the promise is removed."

(ii) "Returns a Promise that resolves after seconds seconds have passed. The Promise resolves with the actual amount of time that was waited."

I would have expected Trove:AddPromise to cancel the Promise object that is returned by Promise.delay.

@LDGerrits LDGerrits changed the title AddPromise does not cancel a Promise returned by Promise.delay when the trove object is cleaned up or when the Promise object is removed AddPromise does not cancel a Promise returned by Promise.delay Dec 5, 2024
@LDGerrits LDGerrits changed the title AddPromise does not cancel a Promise returned by Promise.delay :AddPromise does not cancel a Promise object returned by Promise.delay Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant