Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_doneAfterReject (0.11 sec)

  1. 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)
Back to top