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

future.done() and callback_fn race condition #31

Open
eshaan7 opened this issue Sep 23, 2021 · 0 comments
Open

future.done() and callback_fn race condition #31

eshaan7 opened this issue Sep 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@eshaan7
Copy link
Owner

eshaan7 commented Sep 23, 2021

When using &wait=true, the callback_fn cannot be used to modify the result because it is called after the future completes.

This happens if one calls future.done() to wait before the callback fn is executed, it would not work as intended.

@eshaan7 eshaan7 added the bug Something isn't working label Sep 23, 2021
@eshaan7 eshaan7 mentioned this issue Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant