Open 172478394 opened 2 years ago
Any updates here?
Any updates here?
old version code :
type Callback func(*Event)
but the latest version
type Callback func(context.Context, *Event)
any updates on this?
you can set err
in callback func to event.Err
and exit the func, than you can get the error in Event return
event.Err = err
func (f *FSM) Event(ctx context.Context, event string, args ...interface{}) error
@172478394 @CmderQ @aldulea @rahulsawra98
How can i get the error from callback function?