- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 2,371 for Try (0.02 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
* unhealthy. * * @param source the source used to read bytes from the socket. */ internal fun Socket.isHealthy(source: BufferedSource): Boolean = try { val readTimeout = soTimeout try { soTimeout = 1 !source.exhausted() } finally { soTimeout = readTimeout } } catch (_: SocketTimeoutException) { true // Read timed out; socket is good.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.3K bytes - Click Count (1) -
android/guava/src/com/google/common/hash/Striped64.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 15 22:17:15 GMT 2025 - 11.4K bytes - Click Count (0) -
scripts/playwright/query_param_models/image01.py
browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/query_param_models/tutorial001.py"] ) try: for _ in range(3): try: response = httpx.get("http://localhost:8000/docs") except httpx.ConnectError: time.sleep(1) break with sync_playwright() as playwright: run(playwright) finally:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 1.3K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/ports/DefaultPortDetector.java
*/ public boolean isAvailable(int port) { try { ServerSocket ss = new ServerSocket(port); try { ss.setReuseAddress(true); } finally { ss.close(); } DatagramSocket ds = new DatagramSocket(port); try { ds.setReuseAddress(true); } finally {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 1.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/PropertiesUtil.java
*/ public static void load(final Properties props, final InputStream in) { assertArgumentNotNull("props", props); assertArgumentNotNull("in", in); try { props.load(in); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Wraps exception handling for {@link Properties#load(Reader)}.Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 7.9K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
Facade<Integer> facade = list.get(i); try { facade.get(); r++; } catch (CancellationException e) { r += 2; } } return r; } @Benchmark public long timeGetWith0Timeout(long reps) throws Exception { Facade<?> f = notDoneFuture; long r = 0; for (int i = 0; i < reps; i++) { try { f.get(0, SECONDS); r += 1;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.7K bytes - Click Count (0) -
docs/smb3-features/06-witness-protocol-design.md
} } private InetAddress discoverWitnessService() throws IOException { // Try the same server first InetAddress serverAddress = transport.getRemoteAddress(); if (isWitnessServiceAvailable(serverAddress)) { return serverAddress; } // Query for cluster witness service via DNS try { String clusterName = getClusterName(serverAddress); if (clusterName != null) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
abstract File createTempFile(String prefix) throws IOException; private static TempFileCreator pickSecureCreator() { try { Class.forName("java.nio.file.Path"); return new JavaNioCreator(); } catch (ClassNotFoundException runningUnderAndroid) { // Try another way. } try { int version = (int) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); int jellyBean =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 29 18:50:14 GMT 2025 - 11.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
* * <p>A call to any of the <i>enter</i> methods with <b>void</b> return type should always be * followed immediately by a <i>try/finally</i> block to ensure that the current thread leaves the * monitor cleanly: * * {@snippet : * monitor.enter(); * try { * // do things while occupying the monitor * } finally { * monitor.leave(); * } * } *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0)