Versions in this module Expand all Collapse all v0 v0.1.0 Jul 2, 2024 Changes in this version + func Await(strategy AwaitStrategy, calls ...dispatchproto.Call) ([]dispatchproto.CallResult, error) + func Deserialize(coro Coroutine, state dispatchproto.Any) error + func Gather[O any](calls ...dispatchproto.Call) ([]O, error) + func Serialize(coro Coroutine) (dispatchproto.Any, error) + func Yield(res dispatchproto.Response) dispatchproto.Request + type AwaitStrategy int + const AwaitAll + const AwaitAny + type Coroutine = coroutine.Coroutine[dispatchproto.Response, dispatchproto.Request] + func New(fn func() dispatchproto.Response) Coroutine + type InstanceID = uint64 + type VolatileCoroutines struct + func (f *VolatileCoroutines) Close() error + func (f *VolatileCoroutines) Delete(id InstanceID) + func (f *VolatileCoroutines) Find(id InstanceID) (Coroutine, error) + func (f *VolatileCoroutines) Register(coro Coroutine) InstanceID