winteryoung
07/26/2018, 1:03 PMcont.initCancellability() should be placed after removeXXX. Because if the coroutine was cancelled right after the init call, the waiter won't be removed.elizarov
07/26/2018, 1:05 PMremoveOnCancellation immediately removes the node if it is invoked on a continuation that is already cancelled.winteryoung
07/26/2018, 1:17 PMinitCancellability.elizarov
07/26/2018, 1:20 PMwinteryoung
07/26/2018, 1:20 PM