Skip to main content

spawn_with_interval

Function spawn_with_interval 

Source
pub fn spawn_with_interval<D, H>(
    app_handle: AppHandle,
    handler: H,
    poll_interval: Duration,
)
where D: Clone + Send + Sync + Serialize + DeserializeOwned + 'static, H: BatchItemHandler<D> + 'static,
Expand description

Spawn with a custom poll interval.