#Can actions be async? Will the transition wait for the actions to finish?
1 messages · Page 1 of 1 (latest)
Actions are treated as fire and forget and interpreter won't wait for their settlement nor does it care about the resolved or rejected value. If you need to wait for them or care about their returned value, you need them as invoked promises/callbacks.
mmm.. I need some of the actions to be part of the transition
This is an example https://stackblitz.com/edit/vitejs-vite-mact5d?file=src/test.machine.ts
Should I move that actions updateJobStatus to be an intermediate "invoke" state?
You have it already as an invocation, so it's fine?