If you use `CoroutineIntrinsics.suspendCoroutineOr...
# coroutines
e
If you use
CoroutineIntrinsics.suspendCoroutineOrReturn
(see “Implementation Details”) then you get the reference to the actual state-machine object that does implement java.io.Serializable. The other objects that it references (like local variables) will have to be serializable too, though. But you can use something like Kryo that does not care what is serializable and what is not. With Kryo you can start with the Continuation that you’ve got from
suspendCoroutine