Async Action or Qualifier

  • July 21, 2017 at 10:07 #21464

    What’s the best approach to implement a logic which requires a asynchronous call such as server call before proceeding to next step.

    August 1, 2017 at 11:26 #21584

    Hi Shubham,

    Thanks for your post.

    I don’t know that there is a universal “best approach” in this regard. Is best the simplest? The best performant? The quickest to write? The least memory-intensive?

    The simplest solutions I can imagine is either using a boolean in the Context to know whether the AI should be ‘waiting’ for response or not, or alternatively to disable/pause the AI component altogether while waiting for the response, then enable/resume again upon receiving the result.

You must be logged in to reply to this topic.