code: function cancelMain() {
      if (mainTask.isRunning && !mainTask.isCancelled) {
        mainTask.isCancelled = true
        next(TASK_CANCEL)
      }
    }
docs: cancellation of the main task. We'll simply resume the Generator with a Cancel