Versions in this module Expand all Collapse all v0 v0.9.0 Jul 4, 2024 Changes in this version + var ErrStop = errors.New("service stopped") + func StartStopFunc(...) *startStopFunc + func StopAllParallel(services []Service) + func WaitAllStarted(services ...Service) + func WaitAllStartedC(services ...Service) <-chan struct + type BaseStartStop struct + func (s *BaseStartStop) StartInit(ctx context.Context) (context.Context, bool, func(), func()) + func (s *BaseStartStop) Started() <-chan struct{} + func (s *BaseStartStop) Stop() + func (s *BaseStartStop) StopInit() (bool, <-chan struct{}, func(didStop bool)) + func (s *BaseStartStop) Stopped() <-chan struct{} + type Service interface + Start func(ctx context.Context) error + Started func() <-chan struct{} + Stop func()