pub trait DaemonSpawner: Send + Sync {
// Required method
fn spawn(&self, f: Box<dyn FnOnce() + Send + 'static>);
}Expand description
Trait for custom thread/task executors to spawn the background Daemon.
Decouples spawning from DualCacheFF::new, enabling execution on Tokio,
FreeRTOS tasks, Loom virtual threads, or other user-defined runtimes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".