-
Notifications
You must be signed in to change notification settings - Fork 87
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 state is "running" after it has been resolved #193
Comments
FWIW, with |
Yes, the state only becomes "finished" when the value has been collected internally, e.g. [...]
> print(fut$state)
[1] "running"
> value(fut)
[1] 4
> fut$state
[1] "finished" Are you looking into this to understand what's happening under the hood or are you building something that relies on it? Please note that |
Awesome. I just came across as I was looking into handling errors that happen in a future. I didn't realize it was an internal field and it just surprised me. I'm not relying on it.
Thanks for asking. Between |
Naive question: is it safe to directly reference |
Never mind: I should have requested |
On my machine (Ubuntu 14.04) it's possible for a future to be resolved yet have a state of "running". I'm not sure if this is intentional or not, since it seems possible to know whether a future is "finished" or "failed" before
value
is called, but maybe that's not thefuture
design philosophy.Here's a reproducible example:
The text was updated successfully, but these errors were encountered: