Revealed preference is the economics idea that what people do is what people...

@mistersql

Revealed preference is the economics idea that what people do is what people prefer. What and developers prefer as their main async pattern is a race... two async methods that both reference and modify the same data structure with no particular guarantees who changes it or reads it first.

All the other patterns have rich abstraction libraries, but this one doesn't.

Self-replies

Maybe something that once the code realizes that there is a race, it should help out by using timers to randomly change the value to one of it's previous values and then back again, maybe every 100 ms. I don't know if race detection is statically detectable. You could also just apply this to all state that is referenced in an async callback.