sindresorhus/del

Async throw error delay

Open

#98 opened on Jul 12, 2019

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (1,305 stars) (71 forks)batch import
enhancementhelp wanted

Description

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.

Contributor guide