The code above does work without the last .finally step.
It's as if .finally was not allowed.
By the way, me calling step2() and not returning promise above is not an issue, I tried returning Promise.resolve()'d function, same thing - works without .finally, doesn't with it.
Did you ever try .finally on pMap and did it work for you?
hi Sindre, guys,
Whenever I append
.finally
I get this error message:TypeError: pMap(...).catch(...).finally is not a function
For example, here I try to write bunch of files asynchronously:
The code above does work without the last
.finally
step. It's as if.finally
was not allowed. By the way, me callingstep2()
and not returning promise above is not an issue, I tried returningPromise.resolve()
'd function, same thing - works without.finally
, doesn't with it.Did you ever try
.finally
onpMap
and did it work for you?Thank you.