I am using Promise.all to run two separate functions which in themselves are maps running a function within a Promise.all multiple times.
async function nonBlocki