// SimpleHander creates a HandlerFunc for a simple function that accepts a stop
// channel. The channel will be closed when Stop is called.
SimpleHander creates a HandlerFunc for a simple function that accepts a stop
channel. The channel will be closed when Stop is called.
// SimpleHander creates a HandlerFunc for a simple function that accepts a stop // channel . The channel will be closed when Stop is called .
func SimpleHandler(f func(t Task, stop <-chan bool) bool) HandlerFunc {
	return func(t Task) Handler {
		return &simpleHandler{
			task: t,
			stop: make(chan bool),
			f:    f,
		}
	}
}
func SimpleHandler ( f func ( t Task , stop <- chan bool ) bool ) HandlerFunc { return func ( t Task ) Handler { return & simpleHandler { task : t , stop : make ( chan bool ) , f : f , } } }
SimpleHander creates a HandlerFunc for a simple function that accepts a stop
channel.
SimpleHander creates a HandlerFunc for a simple function that accepts a stop channel .