Lifecycle utility for goroutine-based objects
Lifecycle utility for goroutine-based objects.
See here for a complete example.