Skip to main content

spawn_cleanup_task

Function spawn_cleanup_task 

Source
pub fn spawn_cleanup_task(cache: Arc<IdempotencyCache>) -> JoinHandle<()>
Expand description

Spawn 一个后台 task 周期性清理过期 entries。返回的 task handle 交由 bridge-owned crate::bridge::BackgroundRuntime 托管。