We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When checking a Scaler's Future.done() status, without calling Future.result() or Future.add_done_callback(), the call never returns True:
Future.done()
Future.result()
Future.add_done_callback()
True
f = c.submit(round, 10.6) while not f.done(): # will loop forever pass
However, adding a callback prevents the issue:
f = c.submit(round, 10.6) f.add_done_callback(print) while not f.done(): # will not block indefinitely pass
The text was updated successfully, but these errors were encountered:
Add unit-test that reproduces issue Citi#24.
76b0477
Signed-off-by: rafa-be <[email protected]>
Fixes Future.done() behavior (issue Citi#24).
f352e2a
f15fb60
5d20ae5
db256d5
116f47e
rafa-be
When branches are created from issues, their pull requests are automatically linked.
When checking a Scaler's
Future.done()
status, without callingFuture.result()
orFuture.add_done_callback()
, the call never returnsTrue
:However, adding a callback prevents the issue:
The text was updated successfully, but these errors were encountered: