Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 431 for promise (0.06 sec)

  1. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

            latch.countDown();
        }
    
        public Promise then(final Consumer<RESPONSE> consumer) {
            return promise.then(consumer);
        }
    
        public Promise error(final Consumer<Throwable> consumer) {
            return promise.error(consumer);
        }
    
        public Promise promise() {
            return promise;
        }
    
        public class Promise {
            public Promise then(final Consumer<RESPONSE> consumer) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
            });
            th.start();
    
            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 {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/request/Request.java

    import org.codelibs.fess.suggest.exception.SuggesterException;
    import org.opensearch.client.Client;
    import org.opensearch.core.common.Strings;
    
    public abstract class Request<T extends Response> {
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
                throw new IllegalArgumentException(error);
            }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

        val request =
          Request.Builder()
            .url(url)
            .build()
    
        val promise = CompletableFuture<Response>()
    
        val call = client.newCall(request)
        call.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              promise.completeExceptionally(e)
            }
    
            override fun onResponse(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        headersDelayAmount = delay
        headersDelayUnit = unit
      }
    
      fun getHeadersDelay(unit: TimeUnit): Long = unit.convert(headersDelayAmount, headersDelayUnit)
    
      fun withPush(promise: PushPromise) =
        apply {
          promises.add(promise)
        }
    
      fun withSettings(settings: Settings) =
        apply {
          this.settings = settings
        }
    
      fun withWebSocketUpgrade(listener: WebSocketListener) =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

        protected Req request;
    
        public RequestBuilder(final Client client, final Req request) {
            this.client = client;
            this.request = request;
        }
    
        public Deferred<Res>.Promise execute() {
            return request.execute(client);
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. docs/en/docs/js/termynal.js

    			}
            }
        }
    
        /**
         * Helper function for animation delays, called with `await`.
         * @param {number} time - Timeout, in ms.
         */
        _wait(time) {
            return new Promise(resolve => setTimeout(resolve, time));
        }
    
        /**
         * Converts line data objects into line elements.
         *
         * @param {Object[]} lineData - Dynamically loaded lines.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/resources/poms/validation/duplicate-profile-id.xml

      <artifactId>aid</artifactId>
      <groupId>gid</groupId>
      <version>0.1</version>
      <packaging>pom</packaging>
    
      <profiles>
        <profile>
          <id>non-unique-id</id>
        </profile>
        <profile>
          <id>non-unique-id</id>
        </profile>
      </profiles>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/resources/poms/validation/invalid-profile-ids.xml

        <profiles>
            <profile>
                <id>+invalid-id</id>
            </profile>
            <profile>
                <id>-invalid-id</id>
            </profile>
            <profile>
                <id>!invalid-id</id>
            </profile>
            <profile>
                <id>?invalid-id</id>
            </profile>
            <profile>
                <id>valid-id</id>
            </profile>
            <profile>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. src/main/webapp/js/profile.js

    Kazushi Morishima <******@****.***> 1536732811 +0900
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Sep 12 06:47:49 UTC 2018
    - 1.3K bytes
    - Viewed (0)
Back to top