I have to implement a project in which the user can stop the long-running task at any given point in time, and can choose to resume or terminate it. This will ensure that th