How to force .then branch to wait
for the below posted code, at the run time, the log message:
how to collect returned results of promises
as shown in the below posted code, for the array geoTIFFsFileNames
it contains five files’ names. for the number of items in the latter array, i want to invoke the webservice
WSGeoTIFFAsBlobStreamer
, and for each invokation to it there are some data to be returned correspond to the file name.
i want to have the executions or the invokations to the webservice to be done async, so i created the array promises
to collect the promises returned from .stream
await does not suspend the execution till it finishes
for the below posted code, despite i am using await
before Promise.all
, the execution of the code does not wait till await Promise.all
finishes first.
what happens is, the code that contains: