You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However large parts of @sync blocks are in turn @async statements, and any exception thrown from a @async statement will be a TaskFailedException.
There is a case to be made for unwrapping them.
(Arguably the same for CapturedExceptions with distributed)
Upside of unwrapping them is that this is probably what people want, it is the useful information.
Downside is it is a loss of information, someone might want the task.
I lean towards not doing this, and just doing #41300
at least at first, which should solve most of the pain.
The text was updated successfully, but these errors were encountered:
Right now we take any exception that occurs in a
@sync
block and just put it straight into aComposite
exceptionjulia/base/task.jl
Lines 359 to 363 in b46df09
However large parts of
@sync
blocks are in turn@async
statements, and any exception thrown from a@async
statement will be aTaskFailedException
.There is a case to be made for unwrapping them.
(Arguably the same for
CapturedExceptions
with distributed)Upside of unwrapping them is that this is probably what people want, it is the useful information.
Downside is it is a loss of information, someone might want the task.
I lean towards not doing this, and just doing #41300
at least at first, which should solve most of the pain.
The text was updated successfully, but these errors were encountered: