Introduce the core algorithm of task cancelation

This commit is contained in:
Kerollmops 2022-10-18 13:47:22 +02:00 committed by Clément Renault
parent 6276b2a382
commit 74657bba2c
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 57 additions and 20 deletions

View file

@ -127,6 +127,7 @@ impl BatchKind {
impl BatchKind {
/// Returns a `ControlFlow::Break` if you must stop right now.
// TODO use an AutoBatchKind as input
pub fn new(task_id: TaskId, kind: KindWithContent) -> ControlFlow<BatchKind, BatchKind> {
use AutobatchKind as K;