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. |
psfinaki
left a comment
There was a problem hiding this comment.
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)