// Stop method will send a message to the worker to make it stop.
// It is interesting put this Stop method in a defer function.
Stop method will send a message to the worker to make it stop.
It is interesting put this Stop method in a defer function.
// Stop method will send a message to the worker to make it stop . // It is interesting put this Stop method in a defer function .
func (w Worker) Stop() {
	go func() {
		w.quit <- true
	}()
}
func ( w Worker ) Stop ( ) { go func ( ) { w . quit <- true } ( ) }
Stop method will send a message to the worker to make it stop.
Stop method will send a message to the worker to make it stop .