Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 550 for ccancel (0.04 seconds)

  1. okhttp-coroutines/src/main/kotlin/okhttp3/coroutines/ExecuteAsync.kt

    import okhttp3.internal.closeQuietly
    import okio.IOException
    
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              continuation.resumeWithException(e)
            }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jun 19 04:20:30 GMT 2025
    - 1.4K bytes
    - Click Count (1)
  2. android/guava/src/com/google/common/util/concurrent/ForwardingFuture.java

      protected ForwardingFuture() {}
    
      @Override
      protected abstract Future<? extends V> delegate();
    
      @Override
      @CanIgnoreReturnValue
      public boolean cancel(boolean mayInterruptIfRunning) {
        return delegate().cancel(mayInterruptIfRunning);
      }
    
      @Override
      public boolean isCancelled() {
        return delegate().isCancelled();
      }
    
      @Override
      public boolean isDone() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java

            // for technical reasons we cannot throw here, even if delegate does cancel transfer
            listener.transferInitiated(event(session, resource, TransferEvent.EventType.INITIATED));
    
            Thread.sleep(500); // to make sure queue is processed, cancellation applied
    
            // subsequent call will cancel
            assertThrows(
                    TransferCancelledException.class,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Dec 01 19:41:22 GMT 2024
    - 5K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

              webSocketCloseTimeout,
            ).apply {
              if (client) {
                call =
                  object : FailingCall() {
                    override fun cancel() {
                      this@TestStreams.cancel()
                    }
                  }
              }
            }
          webSocket!!.initReaderAndWriter(name, this, client)
        }
    
        /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 18.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       * of {@link CombinedFuture}, the user-supplied callback usually has its own references to inputs.
       */
      /*
       * In certain circumstances, this field might theoretically not be visible to an afterDone() call
       * triggered by cancel(). For details, see the comments on the fields of TimeoutFuture.
       */
      @LazyInit
      private @Nullable ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures;
    
      private final boolean allMustSucceed;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 16K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            // This should fail because localhost doesn't support SMB multi-channel
            // but the method should not throw NullPointerException
            try {
                method.invoke(multiChannelManager, localhost, loopback);
                // If it doesn't throw, that's unexpected for localhost
                fail("Expected CIFSException for localhost multi-channel attempt");
            } catch (java.lang.reflect.InvocationTargetException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        step2Waiter.awaitStarted();
    
        // Everything should still be open.
        assertStillOpen(closeable1, closeable2, closeable3, closeable4);
    
        // Cancel step 3, resume step 2, and pause in step 4.
        assertWithMessage("step3.cancel()").that(step3.cancel(false)).isTrue();
        step2Waiter.awaitReturned();
        step4Waiter.awaitStarted();
    
        // Step 1 is not cancelled because it was done.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                this.taskQueue.shutdown()
              } else {
                // When we request a graceful close also schedule a cancel of the web socket.
                val cancelAfterCloseMillis = messageOrClose.cancelAfterCloseMillis
                taskQueue.execute("$name cancel", MILLISECONDS.toNanos(cancelAfterCloseMillis)) {
                  cancel()
                }
              }
            } else if (messageOrClose == null) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  9. cmd/untar.go

    		dec, err := zstd.NewReader(bf, zstd.WithDecoderMaxWindow(16<<20))
    		if err != nil {
    			return err
    		}
    		defer dec.Close()
    		r = dec
    	case formatBZ2:
    		ctx, cancel := context.WithCancel(ctx)
    		defer cancel()
    		r = pbzip2.NewReader(ctx, bf, pbzip2.DecompressionOptions(
    			pbzip2.BZConcurrency((runtime.GOMAXPROCS(0)+1)/2),
    			pbzip2.BZConcurrencyPool(bz2Limiter)))
    	case formatLZ4:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 6K bytes
    - Click Count (2)
  10. .ci/templates.t/pull-request-gradle-unix.yml

                - elastic
              allow-whitelist-orgs-as-admins: true
              trigger-phrase: '.*run\W+elasticsearch-ci/{pr-job}.*'
              github-hooks: true
              status-context: elasticsearch-ci/{pr-job}
              cancel-builds-on-update: true
              excluded-regions:
                - ^docs/.*
              black-list-labels:
                - '>test-mute'
        builders:
          - inject:
              properties-file: '.ci/java-versions.properties'
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 01 20:27:05 GMT 2021
    - 1.3K bytes
    - Click Count (0)
Back to Top