interface ReplicableContext

Marks objects stored in coroutine context that need deep-copying when 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 an independent copy with the same state.

Details

at line 20
ReplicableContext replicate()

Create an independent copy with the same state.

Return Value

ReplicableContext