Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate exceptions from sync or async jobs back up the graph as err…
…backs * Allows all exceptions to be handled in main thread * Exception can be reraised in job.errback if required
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ def run | |
root.callback do | ||
succeed | ||
end | ||
root.errback do |e| | ||
fail e | ||
end | ||
self | ||
end | ||
|
||
|
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