- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for partition (0.14 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt
*/ fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> { if (addresses.size < 2) { return addresses } val (ipv6, ipv4) = addresses.partition { it is Inet6Address } return if (ipv6.isEmpty() || ipv4.isEmpty()) { addresses } else { interleave(ipv6, ipv4) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 1.3K bytes - Viewed (0)