How to run code async in a ThingWorx service
Hi,
I am creating a service that fetches data from an external api with subsequent actions that needs to be run in a certain order. As an api call needs to finish, I wonder how to run code asyncroniously in a thingworx service?
I tried to write an async function, but I got the error in the image bellow, writing use 'esversion: 8' did not work.


