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
Say I am hosting a Workflow in a UIViewController using a WorkflowHostingController. In the view controller, I am observing the output of my Workflow with something like:
Scenario
Say I am hosting a Workflow in a
UIViewController
using aWorkflowHostingController
. In the view controller, I am observing the output of my Workflow with something like:If I need to pass the new value of
foo
back into the Workflow, and I try to update the Workflow synchronously, e.g. by calling:then this consistently results in a crash:
Fatal error: EventPipe can only be enabled from the `pending` state
A suggestion by @jamieQ is that "we could potentially delay notifying the workflow host observers until after all the internal updates were finished."
Workarounds
We can avoid the crash by delaying event handling, either when observing the Workflow output:
or when updating the Workflow:
The text was updated successfully, but these errors were encountered: