cancelTask method
Cancels a specific task by its ID.
If the task is running, it will be marked for cancellation (though the Future cannot be interrupted). If it is queued, it will be removed from the queue.
Implementation
void cancelTask(String id) => _tasksEngine.cancel(id);