// SendSync will block until the given event is actually processed, and
// will return an error if the transition was not possible given the current
// state
SendSync will block until the given event is actually processed, and
will return an error if the transition was not possible given the current
state
// SendSync will block until the given event is actually processed and // will return an error if the transition was not possible given the current // state
func (fsm *migratedFsm) SendSync(ctx context.Context, id interface{}, name fsm.EventName, args ...interface{}) error {
	if err := fsm.ms.ReadyError(); err != nil {
		return err
	}
	return fsm.fsm.SendSync(ctx, id, name, args...)
}
func ( fsm * migratedFsm ) SendSync ( ctx context . Context , id interface { } , name fsm . EventName , args ... interface { } ) error { if err := fsm . ms . ReadyError ( ) ; err != nil { return err } return fsm . fsm . SendSync ( ctx , id , name , args ... ) }
SendSync will block until the given event is actually processed, and
will return an error if the transition was not possible given the current
state
SendSync will block until the given event is actually processed and will return an error if the transition was not possible given the current state