Exception: Charming::Tasks::Cancelled
- Inherits:
-
StandardError
- Object
- StandardError
- Charming::Tasks::Cancelled
- Defined in:
- lib/charming/tasks/cancelled.rb
Overview
Cancelled is raised inside a task thread when the controller calls ‘cancel_task(name)` or the task exceeds its `timeout:`. The task completes with a TaskEvent whose error is this exception, so `on_task` handlers can detect it via `event.error.is_a?(Charming::Tasks::Cancelled)`.