Skip to content

Exceptions a task can exhibit from missionary #57

Answered by leonoel
xificurC asked this question in Q&A
Discussion options

You must be logged in to vote

missionary operators have the following general semantics :

  • top-level effects throw missionary.Cancelled when cancelled before termination
  • effect combinators propagate cancellation and errors untouched (including via, which delegates to the JVM thread interruption mechanism)

As mentioned in #51 interruption handling is a wild west, therefore missionary doesn't provide a generic catch-all-interruptions mechanism, the user must figure out how top-level effects react to cancellation and use try/catch accordingly. In the talk, the implementation of the task is not provided but it is assumed to be a third-party http library throwing InterruptedException on cancellation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xificurC
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