WorkerTaskContext: make it Send + Sync

This commit is contained in:
Dietmar Maurer
2021-09-27 08:39:44 +02:00
parent 6d5d305d9d
commit b446fa14c5
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ use anyhow::{bail, Error};
/// Worker task abstraction
///
/// A worker task is a long running task, which usually logs output into a separate file.
pub trait WorkerTaskContext {
pub trait WorkerTaskContext: Send + Sync {
/// Test if there was a request to abort the task.
fn abort_requested(&self) -> bool;