pakoito
03/06/2018, 8:25 PMjava.lang.IllegalStateException: Already resumedSo, `CoroutineContext`s are not reusable
mkobit
03/06/2018, 8:30 PMpakoito
03/06/2018, 8:33 PMelizarov
03/07/2018, 4:56 AMpakoito
03/07/2018, 11:11 AMpakoito
03/07/2018, 11:11 AMpakoito
03/07/2018, 11:11 AMelizarov
03/07/2018, 11:57 AMCoroutineContext
is an immutable state-less data structure. Your problem is with something else. What kind of error you are getting?pakoito
03/07/2018, 12:18 PMjava.lang.IllegalStateException: Already resumed
pakoito
03/07/2018, 12:19 PMpakoito
03/07/2018, 12:19 PMpakoito
03/07/2018, 12:20 PMelizarov
03/07/2018, 1:06 PMsuspendCoroutine
or suspendCancellableCoroutine
and has nothing to do with the context. It happens when you try to resume the same Continuation
twiceelizarov
03/07/2018, 1:07 PMpakoito
03/07/2018, 1:07 PMpakoito
03/07/2018, 1:08 PMpakoito
03/07/2018, 1:08 PM