© Stefania Loredana Nita and Marius Mihailescu 2017

Stefania Loredana Nita and Marius Mihailescu, Practical Concurrent Haskell, https://doi.org/10.1007/978-1-4842-2781-7_6

6. Cancellation

Stefania Loredana Nita and Marius Mihailescu1

(1)Bucharest, Romania

When working with interactive applications, a thread may need to break another thread execution in a particular situation. The following are some general examples.

  • In web applications , the client presses an Abort button. In this case, some activities need to be aborted; for example, a thread downloads something, or a thread runs script, or a thread renders a page.

  • An application with a thread that runs an interface, and another thread that does intense computations, needs to abort the computation ...

Get Practical Concurrent Haskell: With Big Data Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.