Skip to content

Exceptions and JoinableTaskFactory.Run #1339

Answered by AArnott
Calidus asked this question in Q&A
Discussion options

You must be logged in to vote

This means that you can catch the exception via its original type, as thrown by the delegate itself.
The fact that JTF.Run internally catches and rethrows the exception is an implementation detail and something you can ignore. You can think of it as simply allowing the exception thrown from the delegate to propagate to the JTF.Run caller.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Calidus
Comment options

@AArnott
Comment options

Answer selected by Calidus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants