RE: Is await available in suitescript 2.1 or not?
I know about promises, but promises do not make the functions not return until the promise returns something.
I played around a little while back and didn’t find any good use cases.
This document outlines the support:
https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4387812940.html#subsect_0108024135
However, I don’t know what it means to say that “async, await, and promise” are only supported in the N/https module, etc.
What I really want to know is can I use it in a client script, user event script, etc.
So far, I can only see the value in running some UI operations asynchronously, but even then I don’t think I was able to do it with await.