Using return everytime


#1

In my app I am making several api calls. Just recently I changed all my this.ask/tell states to return this.ask/tell, also the routing statements such like StateIntent, StatelessIntent, FollowUpState, etc. I am also using async/await inside everywhere I am making api calls.
Is it okay to do that?


#2

Yes! You can use return in front of all ask or tell method calls. :slight_smile:

I like to do this as well because it makes it clearer where the intent handling ends and the response is sent back.