func WithOnEndCallback(onEnd OnEndFunc) Opt {
	return func(pool Scheduler) {
		if p, ok := pool.(*poolZ); ok {
			p.onEnd = onEnd
		}
	}
}
// WithOnEndCallback sets the OnEndFunc callback for jobs.Pool
WithOnEndCallback sets the OnEndFunc callback for jobs.Pool
// WithOnEndCallback sets the OnEndFunc callback for jobs . Pool
func WithOnEndCallback(onEnd OnEndFunc) Opt {
	return func(pool Scheduler) {
		if p, ok := pool.(*poolZ); ok {
			p.onEnd = onEnd
		}
	}
}
func WithOnEndCallback ( onEnd OnEndFunc ) Opt { return func ( pool Scheduler ) { if p , ok := pool . ( * poolZ ) ; ok { p . onEnd = onEnd } } }
WithOnEndCallback sets the OnEndFunc callback for jobs.Pool
WithOnEndCallback sets the OnEndFunc callback for jobs . Pool