grav icon indicating copy to clipboard operation
grav copied to clipboard

Add `PodGroup`

Open cohix opened this issue 3 years ago • 0 comments

Something to collect multiple pods, like in cases where you need to watch multiple message types and need to keep references to multiple pods.

Something like:

pods := g.PodGroup()

pods.New().On(...)
pods.New().OnType(...)

It would still be safe since pods retains the pod object so you don't have to if you don't want to.

cohix avatar Jun 13 '21 02:06 cohix