- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_doneAfterReject (0.11 sec)
-
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
final CountDownLatch latch = new CountDownLatch(1); deferred.promise().error(error -> latch.countDown()); assertTrue(latch.await(10, TimeUnit.SECONDS)); } @Test public void test_doneAfterReject() throws Exception { final Deferred<SuggestResponse> deferred = new Deferred<>(); Thread th = new Thread(() -> { deferred.reject(new Exception()); }); th.start();
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.8K bytes - Viewed (0)