You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is possible. You'll need to make the callback async. The example in https://github.com/looplab/fsm/blob/main/examples/cancel_async_transition.go shows how to use this. That example is geared towards canceling the transition but you can just as easily block on your timeout context and then decide what to do (cancel the transition, trigger an event on the state machine).
When I use context.WithTimeout(ctx, time.Duration) with fsm.Event(ctx, ...) like:
the internal block exec immediately, not after timeout.
The text was updated successfully, but these errors were encountered: