https://kotlinlang.org logo
e

elizarov

12/28/2016, 11:20 PM
The code is also racy. You either must explicitly lock the state of
ContinuationWait
object while you check/modify it, or use lock-free techniques with compare-and-set