|
|
|
|
|
by latchkey
863 days ago
|
|
Above: You have `await Promise.all()`. Remove the `await` in front of `fs.move()`. You don't need the second `await` for blocking purposes. Sure, it is your code to do as you like, but if you're going to post it as an example, you might want to correct it first so that others don't make the same mistakes. |
|
Edit: though maybe I'm misunderstanding given that you said it would make them run sync, because as far as I know, the functions would still run in parallel? Essentially, I believe it would roughly be the equivalent of this: