Versions in this module Expand all Collapse all v1 v1.0.1 Mar 1, 2020 Changes in this version + var ErrStopped = errors.New("ThreadManager already stopped") + type ThreadManager struct + func (tg *ThreadManager) Add() error + func (tg *ThreadManager) AfterStop(fn func() error) error + func (tg *ThreadManager) Done() + func (tg *ThreadManager) OnStop(fn func() error) error + func (tg *ThreadManager) Stop() error + func (tg *ThreadManager) StopChan() <-chan struct{}