© 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.