sindresorhus/del

Async throw error delay

Open

#98 opened on Jul 12, 2019

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

Repository metrics

Stars
 (1,305 stars)
PR merge metrics
 (No merged PRs in 30d)

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