func (d *Dinghy) Stop() error {
	d.logger.Println("stopping event loop")
	// exit any state running and the main event fsm.
	for i := 0; i < 2; i++ {
		d.stopChan <- struct{}{}
	}
	return nil
}
// Stop will stop any running event loop.
Stop will stop any running event loop.
// Stop will stop any running event loop .
func (d *Dinghy) Stop() error {
	d.logger.Println("stopping event loop")
	for i := 0; i < 2; i++ {
		d.stopChan <- struct{}{}
	}
	return nil
}
func ( d * Dinghy ) Stop ( ) error { d . logger . Println ( " " ) for i := 0 ; i < 2 ; i ++ { d . stopChan <- struct { } { } } return nil }
Stop will stop any running event loop.
Stop will stop any running event loop .
// exit any state running and the main event fsm.