Updated the gist to work. As soon as CoroutineScope.coroutineContext is replaced by kotlin.coroutines.experimental.coroutineContext things start behaving funny
uli
06/18/2018, 5:25 PM
Updated the code to also work on coroutines 0.23.1 but with an extra yield as a cancelation point. Just to point out the issue