The Script API functions are executed asynchronously and instead of returning result directly they return a promise of result in the form of AsyncScriptResult. The Async Script API offers functions to work with AsyncScriptResult
Flattening async results of Script API functions.
list - the list of AsyncScriptResult
The example below will return the AsyncScriptResult of the list of results of functions asyncFn2() and asyncFn3()