Struct pr47::util::serializer::CoroutineSharedData [−][src]
pub struct CoroutineSharedData { /* fields omitted */ }
Expand description
Context shared by all coroutines in the same serialization group
Implementations
Add a new task to context, saving the “completion signal receiver” to the context, returning the allocated task ID.
The allocated task ID starts from 1
instead of 0
, since the main task is not managed
by SharedContext
.
Remove the given task from context, together with its “completion signal receiver”. This is called on child task exit, in order to reduce the burden of main task.