twilio-ivr icon indicating copy to clipboard operation
twilio-ivr copied to clipboard

allow non-renderable async states

Open ethanresnick opened this issue 9 years ago • 2 comments

I'm not sure what the harm is...

[this would require updating resolveBranches to call backgroundTrigger as we branch over these non-renderable states, and it would require listing AsyncState explicitly in the UsableState type if it's not already].

ethanresnick avatar Nov 01 '16 07:11 ethanresnick

It would also mean that an async state needs to be branching or renderable. Because if it's not either (i.e., if it just has backgroundTrigger()), then there's no twiml to respond to the user with when we branch to it.

So being async would become like being routable: it can be applied to either a branching state or a renderable state, but a state that's just async is invalid.

ethanresnick avatar Dec 18 '16 03:12 ethanresnick

Under the proposal in #7, something like this could become beforeTransitionOut...

ethanresnick avatar Dec 30 '16 10:12 ethanresnick