-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@async error() isn't being printed #36854
Comments
By design. If you don't wait for the result, then it vanishes. Either wait on the result or wrap this in julia> function f()
@sync begin
@async error()
println("done")
end
end
f (generic function with 1 method)
julia> f()
done
ERROR: TaskFailedException: See also #33248. |
My actual code has two async threads that are long-running. Is there no way to get an exception from one thread when the other thread never finishes? Example:
|
I recommend wrapping the task in a "monitor" task for debugging:
|
Or, if you want the entire |
Thanks! Selecting on multiple tasks had also worked: |
From searching, I thought there were fixes for this, but I'm still seeing no printed error on a current nightly:
The text was updated successfully, but these errors were encountered: