Skip to main content

run_sync_loop

Function run_sync_loop 

Source
pub async fn run_sync_loop(
    client: Arc<SyncClient>,
    delegate: Arc<dyn SyncDelegate>,
)
Expand description

Run the sync loop — connects, handshakes, pushes/receives, reconnects.

Runs forever (until the task is cancelled). On disconnect it sleeps for SyncClient::backoff_duration and retries; on a clean close the backoff resets to zero.