[Feature Request] Expose AbortController
in Workflow sandbox
#1564
Labels
enhancement
New feature or request
AbortController
in Workflow sandbox
#1564
Is your feature request related to a problem? Please describe.
xstate is a very useful library for implementing state machines in TypeScript codebases. There is a specific feature that is particularly prudent to my usecase -
fromPromise
. Internally this uses anAbortController
as part of it's implementation (see here). In the same vein as #1550, I have a patch locally that exposes AbortController to the vm sandbox, and everything seems to work fine (at least for my usage of xstate currently). From reading the docs this seems like a perfectly safe API to expose to the sandbox.Describe the solution you'd like
Expose
AbortController
to the worker workflow sandbox.Additional context
The text was updated successfully, but these errors were encountered: