Files
nocturne/backend/api_server/src/scheduler/task_func.rs
T
2024-10-30 22:54:39 -07:00

4 lines
125 B
Rust

pub trait TaskFunc: Fn() + Send + Sync + 'static {}
impl<T> TaskFunc for T where T: Fn() + Send + Sync + Clone + 'static {}