waitUntilOrFailure

open suspend override fun waitUntilOrFailure(syncState: SyncState): SyncRequestResult

Suspends execution until the specified syncState is reached or a failure occurs.

Return

SyncRequestResult that it's either a SyncRequestResult.Failure if SyncState.Failed is encountered, or SyncRequestResult.Success if the specified syncState is reached.

Parameters

syncState

The desired SyncState to wait for.

See also