Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 899 for promise (1.24 sec)

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

        }
    
        /**
         * Returns the promise.
         * @return The promise.
         */
        public Promise promise() {
            return promise;
        }
    
        /**
         * The promise.
         */
        public class Promise {
            /**
             * Constructs a new Promise object.
             */
            public Promise() {
                // nothing
            }
    
            /**
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 7.8K 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: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/request/Request.java

         */
        public Request() {
            // nothing
        }
    
        /**
         * Executes the request.
         * @param client The OpenSearch client.
         * @return A Promise that will be resolved with the response or rejected with an error.
         */
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Nov 23 11:21:40 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

          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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

            this.client = client;
            this.request = request;
        }
    
        /**
         * Executes the request.
         * @return A Promise that will be resolved with the response or rejected with an error.
         */
        public Deferred<Res>.Promise execute() {
            return request.execute(client);
        }
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. CLAUDE.md

    ├── concurrent/                 # Async patterns (Deferred/Promise)
    └── util/                      # Utilities
    ```
    
    ### Key Design Patterns
    
    - **Builder**: SuggesterBuilder, SuggestRequestBuilder
    - **Facade**: Suggester (main entry point)
    - **Composite**: NormalizerChain, ReadingConverterChain
    - **Strategy**: Normalizer, ReadingConverter, ContentsParser
    - **Deferred/Promise**: Async operations
    
    ### Index Alias Strategy
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. docs/en/docs/js/custom.js

        if(!announceRight) return;
    
        const sponsorImages = document.querySelectorAll('.sponsor-image');
    
        const imagePromises = Array.from(sponsorImages).map(img => {
            return new Promise((resolve, reject) => {
                if (img.complete && img.naturalHeight !== 0) {
                    resolve();
                } else {
                    img.addEventListener('load', () => {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 22 15:11:52 UTC 2025
    - 6.3K bytes
    - Viewed (2)
  8. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

         * @param docPerReq The number of documents to process per request.
         * @param requestInterval The interval between requests.
         * @return A Promise that will be resolved with the SuggestIndexResponse or rejected with an error.
         */
        public Deferred<SuggestIndexResponse>.Promise indexFromQueryLog(final QueryLogReader queryLogReader, final int docPerReq,
                final long requestInterval) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 34.4K bytes
    - Viewed (0)
  9. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 7.1K bytes
    - Viewed (1)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Writer.kt

            flags = FLAG_ACK,
          )
          sink.flush()
        }
      }
    
      /**
       * HTTP/2 only. Send a push promise header block.
       *
       * A push promise contains all the headers that pertain to a server-initiated request, and a
       * `promisedStreamId` to which response frames will be delivered. Push promise frames are sent as
       * a part of the response to `streamId`. The `promisedStreamId` has a priority of one greater than
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top