When you execute a long running process on a different thread, to keep the UI responsive during the operation, you may want to provide a functionality to cancel the operation. This can be done on an on-demand basis.
In this recipe, we will learn how to add cancellation support to the existing long running operation that we have built in the previous recipe.