-
Notifications
You must be signed in to change notification settings - Fork 794
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
AsyncLazy bugfix #18101
AsyncLazy bugfix #18101
Conversation
|
@0101, I couldn't repro locally this timeout in stress-test you pointed out: Maybe it would be better to use |
Let's try!
Yeah that sounds like a good idea. Hopefully we don't have any actually long running test. Well if we do we'll find out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We are getting there... :)
Description
New code, new bugs:
#18074 (comment)
It is incredibly easy to write buggy code when concurrent mutations of state are involved. 😐
This change is to contain the mutation to just a single function with lock.
Fixes this rare edge case with unawaited completion in AsyncLazy:
#18074 (comment)