//Close will wait for he background thread to finsh and then exit
Close will wait for he background thread to finsh and then exit
// Close will wait for he background thread to finsh and then exit
func (l Life) Close() error {
	l.Done <- struct{}{}
	l.wg.Wait()
	return nil
}
func ( l Life ) Close ( ) error { l . Done <- struct { } { } l . wg . Wait ( ) return nil }
Close will wait for he background thread to finsh and then exit
Close will wait for he background thread to finsh and then exit