dispatchrun / coroutine

Durable coroutines for Go

Home Page:https://dispatch.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coroutine: support composing coroutines in durable mode

achille-roussel opened this issue · comments

To support composition of coroutines, serialization of the coroutine context must be shared across all coroutines sharing the same scope.

To achieve this, we need the coroutine.Context type to implement types.Serializable and types.Deserializable; this will allow serialization of coroutines found in the scope of other coroutines within a single state.