mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Introduce the core algorithm of task cancelation
This commit is contained in:
parent
6276b2a382
commit
74657bba2c
6 changed files with 57 additions and 20 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue