Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 324 for cancel3b (0.06 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

          valueAndCloser.closeAsync();
        }
        super.waitUntilClosed(closingFuture);
      }
    
      @Override
      void cancelFinalStepAndWait(ClosingFuture<TestCloseable> closingFuture) {
        assertThat(closingFuture.cancel(false)).isTrue();
        ValueAndCloser<?> unused = finishToValueAndCloser(closingFuture);
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java

        long r = 0;
        List<Facade<Integer>> list = new ArrayList<>(reps);
        for (int i = 0; i < reps; i++) {
          final Facade<Integer> localFuture = impl.newFacade();
          list.add(localFuture);
          localFuture.cancel(false);
        }
        for (int i = 0; i < reps; i++) {
          Facade<Integer> facade = list.get(i);
          try {
            facade.get();
            r++;
          } catch (CancellationException e) {
            r += 2;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/CollectionFuture.java

      /*
       * We access this field racily but safely. For discussion of a similar situation, see the comments
       * on the fields of TimeoutFuture. This field is slightly different from the fields discussed
       * there: cancel() never reads this field, only writes to it. That makes the race here completely
       * harmless, rather than just 99.99% harmless.
       */
      @CheckForNull @LazyInit private List<@Nullable Present<V>> values;
    
      CollectionFuture(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

            };
    
        future = service.schedule(runnable, 5, MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
        delegateFuture = (ScheduledFuture<?>) delegateQueue.element();
        assertTrue(delegateFuture.isCancelled());
    
        delegateQueue.clear();
    
        future = service.scheduleAtFixedRate(runnable, 5, 5, MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

        } finally {
          Thread.interrupted();
        }
      }
    
      public void testGetCheckedUntimed_cancelled() throws TwoArgConstructorException {
        SettableFuture<String> future = SettableFuture.create();
        future.cancel(true);
        assertThrows(
            CancellationException.class, () -> getChecked(future, TwoArgConstructorException.class));
      }
    
      public void testGetCheckedUntimed_executionExceptionChecked() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. cmd/http-stats.go

    	hstats.totalS3Requests.Inc(api)
    	code := w.StatusCode
    
    	switch {
    	case code == 0:
    	case code == 499:
    		// 499 is a good error, shall be counted as canceled.
    		hstats.totalS3Canceled.Inc(api)
    	case code >= http.StatusBadRequest:
    		if code >= http.StatusInternalServerError {
    			hstats.totalS35xxErrors.Inc(api)
    		} else {
    			hstats.totalS34xxErrors.Inc(api)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * If the server does not respond to each ping with a pong within `interval`, this client will
         * assume that connectivity has been lost. When this happens on a web socket the connection is
         * canceled and its listener is [notified][WebSocketListener.onFailure]. When it happens on an
         * HTTP/2 connection the connection is closed and any calls it is carrying
         * [will fail with an IOException][java.io.IOException].
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  8. cmd/prepare-storage.go

    		Path:   pathJoin(healthCheckPathPrefix, healthCheckLivenessPath),
    	}
    
    	httpClient := &http.Client{
    		Transport: globalInternodeTransport,
    	}
    
    	ctx, cancel := context.WithTimeout(GlobalContext, timeout)
    	defer cancel()
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, serverURL.String(), nil)
    	if err != nil {
    		return err
    	}
    	// Indicate that the liveness check for a peer call
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java

          AbstractFutureBenchmarks.awaitWaiting(thread);
        }
        switch (state) {
          case NOT_DONE:
            break;
          case FINISHED:
            f.set(null);
            break;
          case CANCELLED:
            f.cancel(false);
            break;
          case FAILED:
            f.setException(new Exception());
            break;
        }
        return f;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbWatchHandle.java

         * opened if it is not and should be closed with {@link #close()} when no longer
         * needed.
         * 
         * Closing the context should cancel a pending notify request, but that does not seem to work reliable in all
         * implementations.
         * 
         * Changes in between these calls (as long as the file is open) are buffered by the server, so iteratively calling
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.3K bytes
    - Viewed (0)
Back to top