-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworks the promise `.then` to be greatly simplified. As part of this, error handling has also been improved in a few ways: - Timeouts are now handled by an `AbortSignal` rather than the built-in `timeout` option, as there is currently no way to know if a proc was killed due to a timeout. - The last error is stored until we `await` the result, at which point, we will throw the stored error - We wait for the process to close before trying to read the output, in case it threw
- Loading branch information
Showing
2 changed files
with
57 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters