ReachabilityGate

fun interface ReachabilityGate

A connectivity gate the retry path can wait on. Implemented by NetworkMonitor (via NetworkMonitor.asReachabilityGate), but kept abstract so NetworkClient doesn't depend on any concrete connectivity source and can be tested without one.

Functions

Link copied to clipboard
abstract suspend fun awaitReachable()

Suspends until connectivity is (believed) available, returning immediately if it already is.