ReplicableContext
interface ReplicableContext
Marks objects that control what is installed when coroutine context is copied between coroutines.
Without this, CoroutineContext::copyFrom() shares object references between parent and child coroutines, causing mutations in one to affect the other.
Methods
replicate()
Create the value to install in the copied context.
Details
at line 23
ReplicableContext
replicate()
Create the value to install in the copied context.
Implementations decide which state is inherited, projected, or reset and must document that choice on this method.