Table of Contents

Method WaitForStatus

Namespace
PowerSync.Common.Client
Assembly
PowerSync.Common.dll

WaitForStatus(Func<SyncStatus, bool>, CancellationToken?)

Waits for the first sync status for which the predicate callback returns true.

public Task WaitForStatus(Func<SyncStatus, bool> predicate, CancellationToken? cancellationToken = null)

Parameters

predicate Func<SyncStatus, bool>

A function that evaluates the sync status and returns true when the desired condition is met.

cancellationToken CancellationToken?

Optional cancellation token to abort the wait.

Returns

Task