waitUntilOrFailure

abstract suspend fun waitUntilOrFailure(syncState: SyncState): <Error class: unknown class><<Error class: unknown class>, Unit>

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

Return

An Either containing CoreFailure if SyncState.Failed is encountered, or Unit if the specified syncState is reached.

Parameters

syncState

The desired SyncState to wait for.

See also