enhancementhelp wanted
描述
Would you accept a PR that would change how async errors are thrown so the error is thrown after all pending files being deleted are removed? This would help deal with side effects a lot cleaner, especially when testing.
Similar to https://github.com/sindresorhus/del/pull/90.