Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

388 B
Raw Blame
use std::path::Path;

use crate::backends::BackendError;

#[cfg_attr(not(target_family = "wasm"), async_trait::async_trait)]
#[cfg_attr(target_family = "wasm", async_trait::async_trait(?Send))]
pub trait ActiveTask: Send + Sync {
    async fn pause(
        self: Box<Self>,
        resume_artifact_path: &Path,
    ) -> Result<(), BackendError>;

    async fn cancel(self: Box<Self>);
}