- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 296 for Sleeps (0.04 sec)
-
src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java
* and applies it by sleeping the current thread. */ public void delayByRules() { final long delay = getDelay(); if (delay > 0) { ThreadUtil.sleep(delay); } } /** * Calculates the delay in milliseconds based on current time and configured rules. * The method checks each rule to see if it applies to the current time and day. *
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
// After first call isPrimary should be false assertFalse(d.getIsPrimary(), "isPrimary should be cleared after first call"); // Second call keeps the same state SmbComTransactionResponse r2 = (SmbComTransactionResponse) d.nextElement(); assertSame(d, r2, "Subsequent calls still return same instance");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
tests/transaction_test.go
db, err := OpenTestConnection(&gorm.Config{DefaultTransactionTimeout: 2 * time.Second}) if err != nil { t.Fatalf("failed to connect database, got error %v", err) } tx := db.Begin() time.Sleep(3 * time.Second) if err = tx.Find(&User{}).Error; err == nil { t.Errorf("should return error when transaction timeout, got error %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 13.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
thread.start(); thread.awaitWaiting(); Thread.class.getMethod("suspend").invoke(thread); // Sleep for enough time to add 1500 milliseconds of overwait to the get() call. long toWaitMillis = 3500 - NANOSECONDS.toMillis(System.nanoTime() - thread.startTime); Thread.sleep(toWaitMillis); thread.setPriority(Thread.MAX_PRIORITY); Thread.class.getMethod("resume").invoke(thread); thread.join();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
cmd/server-main.go
} return nil } if configRetriableErrors(err) { logger.Info("Waiting for all MinIO sub-systems to be initialized.. possible cause (%v)", err) time.Sleep(time.Duration(r.Float64() * float64(5*time.Second))) continue } // Any other unhandled return right here. return fmt.Errorf("Unable to initialize sub-systems: %w", err) } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue May 27 15:18:36 UTC 2025 - 35.9K bytes - Viewed (4) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
* Performs maintenance on this pool, evicting the connection that has been idle the longest if * either it has exceeded the keep alive limit or the idle connections limit. * * Returns the duration in nanoseconds to sleep until the next scheduled call to this method. * Returns -1 if no further cleanups are required. */ fun closeConnections(now: Long): Long {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jun 03 17:10:08 UTC 2025 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/QueuesTest.java
Interrupter(Thread threadToInterrupt) { this.threadToInterrupt = threadToInterrupt; } @Override public void run() { try { Thread.sleep(100); } catch (InterruptedException e) { throw new AssertionError(); } finally { threadToInterrupt.interrupt(); } } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
// First read NbtAddress result = lmhosts.getByName("TESTHOST", mockContext); assertNotNull(result); // Modify file with a delay to ensure different lastModified time Thread.sleep(100); try (FileWriter writer = new FileWriter(lmhostsFile)) { writer.write("192.168.1.200 NEWHOST\n"); } // Should reload file and find new host
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
}); } // Submit task to wipe key executor.submit(() -> { try { startLatch.await(); Thread.sleep(10); digest.secureWipeKey(); } catch (Exception e) { // Ignore } }); // Submit more tasks that try to verify data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
public fun shutdownServer(shutdownServer: Boolean): Builder = apply { this.shutdownServer = shutdownServer } /** * Throttles the request reader and response writer to sleep for the given period after each * series of [bytesPerPeriod] bytes are transferred. Use this to simulate network behavior. */ public fun throttleBody( bytesPerPeriod: Long, period: Long,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 17.8K bytes - Viewed (0)