pub async fn stop_task_heartbeat( stop_token: CancellationToken, heartbeat_handle: JoinHandle<()>, )
Stops and awaits a heartbeat worker.