context.call
for each resolution and use Promise.all
to run them parallel:
context.call
for each filter & image pair. We collect the promises of these requests in an array processedImagePromise
. Then, we call Promise.all
again to run them all parallel.