awaitGranted

abstract suspend fun awaitGranted(timeout: Duration): Boolean

Await a connection being granted on this lease. The connection could be immediately revoked, so apps should check available networks after this call completes. May return immediately if a network is unlikely to be granted.

Return

whether a network was found within the timeout.

Parameters

timeout

the length of time to wait for a likely network.