// NewTaskManager returns a new mock task manager.
NewTaskManager returns a new mock task manager.
// NewTaskManager returns a new mock task manager .
func NewTaskManager(instanceID string) *TaskManager {
	m := &TaskManager{
		instanceID: instanceID,
		interval:   time.Second,
		done:       make(chan struct{}),
	}
	m.Lifecycle = lifecycle.New("task-manager",
		lifecycle.WithStart(m.start),
		lifecycle.WithStop(m.stop),
	)
	return m
}
func NewTaskManager ( instanceID string ) * TaskManager { m := & TaskManager { instanceID : instanceID , interval : time . Second , done : make ( chan struct { } ) , } m . Lifecycle = lifecycle . New ( " " , lifecycle . WithStart ( m . start ) , lifecycle . WithStop ( m . stop ) , ) return m }
NewTaskManager returns a new mock task manager.
NewTaskManager returns a new mock task manager .