Closed SubaruWRX55 closed 6 years ago
@SubaruWRX55 Sincere apologies for the long delay (see #146). Yes - you are using it correctly, for what it's worth. I've debated a lot about making handle async in the next major version bump. I'm still open to it, but I need to think through the implications before I'm committed to it.
Is it by design that this.handle runs synchronously? Take this example:
The out put is:
So in order for the green state _onEnter to finish before transitioning to yellow, we need to always put this.handle in a setImmediate.
then the work flow looks right:
Am I using the package correctly?