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
AsyncContext::wait() is documented as :
AsyncContext::wait()
Spawns a future into the context, waiting for it to resolve.
But according to my tests wait() is actually not blocking and return right away, instead of waiting for the future to be done.
wait()
This is pretty confusing, it would be good to clarify its exact behavior in the documentation.
The text was updated successfully, but these errors were encountered:
AFAIK it means that the actor will wait on that future before making anymore progress (like reading new messages or polling children futures).
Sorry, something went wrong.
Indeed, that seems to match was I observed and my understanding of the code.
I think it's worth to make the documentation clearer about the exact semantic of this API as I spent quite some time figuring it out.
No branches or pull requests
AsyncContext::wait()
is documented as :But according to my tests
wait()
is actually not blocking and return right away, instead of waiting for the future to be done.This is pretty confusing, it would be good to clarify its exact behavior in the documentation.
The text was updated successfully, but these errors were encountered: