Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_doneAfterResolve (0.1 sec)

  1. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            final CountDownLatch latch = new CountDownLatch(1);
            deferred.promise().then(response -> latch.countDown());
            assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
    
        @Test
        public void test_doneAfterResolve() throws Exception {
            final Deferred<SuggestResponse> deferred = new Deferred<>();
    
            Thread th = new Thread(() -> {
                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
    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