Exceptions During the Execution of the Worker
Explore how exceptions during worker execution in D can be caught and explicitly sent as messages to the owner. Understand techniques for managing errors in message passing concurrency using std.concurrency, improving the robustness of parallel programs.
We'll cover the following...
We'll cover the following...
As you have seen in the previous chapter, the facilities of the std.parallelism module automatically catch exceptions that have been thrown during the execution of tasks and rethrow them in the context of the owner. This allows the owner to catch such exceptions:
std.concurrency does not provide such a convenience for general exception ...