cooklang_sync_client

Function wait_remote_update

Source
pub fn wait_remote_update(
    api_endpoint: &str,
    remote_token: &str,
    wait_time: u64,
) -> Result<(), SyncError>
Expand description

Connects to the server and waits either when wait_time expires or when there’s a remote update for this client. Note, it doesn’t do the update itself, you need to use run_download_once after this function completes.