Android, Kotlin, Network, Broadcast Receiver.
android.net.ConnectivityManager.CONNECTIVITY_ACTION -> { _connectivityResult.update { it.copy(hasNetwork = isConnectedOrConnecting()) } } } } } so now every time there is an Intent emission the connectivity result will update using the extension we created before. Since we only require to listen on