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
Properly handle deferred futures #1506
Comments
Properly handle deferred futures, fixes #1506
I think we need to execute the function associated with a deferred future, if the future is about to be destroyed and the value has not been retrieved. If this is not done, the associated function might never be executed. |
The current implementation reflects what the standard mandates. This enables lazy evaluation, where unnecessary computations are not evaluated at all. We may want to differ from the standard here (we already do for |
Yah, by letting a future returned from In our case however, we need special handling for deferred futures as otherwise the function associated with those might never execute. |
That's not what I said, the blocking from futures applies to |
Well, let's close this issue and discuss it separately. |
Currently, most of our facilities (wait_xxx, when_xxx, dataflow) do not properly handle deferred futures.
The text was updated successfully, but these errors were encountered: