statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
27.21k stars 1.26k forks source link

feat(core): add signal option to waitFor #5042

Closed boneskull closed 3 months ago

boneskull commented 3 months ago

This PR adds a signal?: AbortSignal option to WaitForOptions, so that a call to waitFor() can be externally aborted.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: fef2f3102165dd260ddd37903ae482c35c3999a3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------ | ----- | | xstate | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR