Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 258 for bletch (0.25 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

            taskRunner.kickCoordinator(this)
          }
          return newTask.latch
        }
      }
    
      private class AwaitIdleTask : Task("$okHttpName awaitIdle", cancelable = false) {
        val latch = CountDownLatch(1)
    
        override fun runOnce(): Long {
          latch.countDown()
          return -1L
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                CountDownLatch latch = new CountDownLatch(1);
    
                Thread waiter = new Thread(() -> {
                    synchronized (response) {
                        try {
                            if (!response.isReceived()) {
                                response.wait(1000);
                            }
                            latch.countDown();
                        } catch (InterruptedException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

                      throw new AssertionError(e);
                    }
    
                    dispatcher.dispatch("foo", stringSubscribers.iterator());
                    latch.countDown();
                  }
                })
            .start();
    
        Uninterruptibles.awaitUninterruptibly(latch);
    
        // See Dispatcher.LegacyAsyncDispatcher for an explanation of why there aren't really any
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/cache/RequestCache.java

        /**
         * Executes and optionally caches a batch of requests using the provided supplier function.
         * This method allows for efficient batch processing of multiple requests.
         * <p>
         * The implementation may optimize the execution by:
         * <ul>
         *   <li>Returning cached results for previously executed requests</li>
         *   <li>Grouping similar requests for batch processing</li>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        CountDownLatch latch = new CountDownLatch(1);
        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.await(latch);
        assertEquals(0, latch.getCount());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        // thread because the task will block on the task latch after unblocking
        // the run latch.
        exec.execute(task);
        runLatch.await();
        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
        // Finish the task by unblocking the task latch.  Then wait for the
        // listener to be called by blocking on the listener latch.
        taskLatch.countDown();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt

        val secondRequest = "/bar"
        val firstRequest = "/foo"
        val latch = CountDownLatch(1)
        val dispatcher: Dispatcher =
          object : Dispatcher() {
            override fun dispatch(request: RecordedRequest): MockResponse {
              if (request.url.encodedPath == firstRequest) {
                latch.await()
              }
              return MockResponse()
            }
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

        public void test_update_callsLoad() throws InterruptedException {
            CountDownLatch latch = new CountDownLatch(1);
            configHelper.setLoadCallback(() -> {
                latch.countDown();
                return 1;
            });
    
            configHelper.update();
    
            assertTrue("Load method should be called within 5 seconds", latch.await(5, TimeUnit.SECONDS));
            assertEquals(1, configHelper.getLoadCallCount());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 00:03:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  9. tests/generics_test.go

    	}
    }
    
    func TestGenericsCreateInBatches(t *testing.T) {
    	batch := []User{
    		{Name: "GenericsCreateInBatches1"},
    		{Name: "GenericsCreateInBatches2"},
    		{Name: "GenericsCreateInBatches3"},
    	}
    	ctx := context.Background()
    
    	if err := gorm.G[User](DB).CreateInBatches(ctx, &batch, 2); err != nil {
    		t.Fatalf("CreateInBatches failed: %v", err)
    	}
    
    	for _, u := range batch {
    		if u.ID == 0 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * Executes a batch update.
         *
         * @param ps
         *            {@link PreparedStatement}. Must not be {@literal null}.
         * @return An array of the number of rows affected by each command in the batch.
         * @throws SQLRuntimeException
         *             If a {@link SQLException} occurs.
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top