This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using Async Scripts and Async Methods within templates and processes

Hi People,

just wondering if any of you succeeded in doing any of the following, if so how did you manage it?

  • Templates
    • Using an async method such as Session.Source.TryGetSingleValueAsync
    • Calling an async script to calculate the value of a column 
  • Processes (haven't tried it myself yet)
    • Using an async method in pre-script on generating condition
    • Executing an async script

Thanks for your Feedback in advance!

Regards,

Ryo

Parents
  • Hi Ryo,

    You can call the async method and use .Result or .Wait() on the result.

    The templates and gen conditions themselves are called synchronously, so you need to wrap async calls in this way.

    HTH

    Hanno

Reply
  • Hi Ryo,

    You can call the async method and use .Result or .Wait() on the result.

    The templates and gen conditions themselves are called synchronously, so you need to wrap async calls in this way.

    HTH

    Hanno

Children
No Data