Method WaitForStatus
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
predicateFunc<SyncStatus, bool>A function that evaluates the sync status and returns true when the desired condition is met.
cancellationTokenCancellationToken?Optional cancellation token to abort the wait.