kill method
Implementation
@mustCallSuper
@protected
Future<void> kill(CancelableAsyncTaskMixin<T> task) async {
final stoppedTask =
_stopAndReturnReference(task)?.task as CancelableAsyncTaskMixin<T>?;
if (stoppedTask == null) {
return;
}
await stoppedTask.kill();
_passEvent(TaskKillEvent<T>(task));
}