Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 379 for cancel0 (0.17 sec)

  1. cmd/storage-rest-client.go

    	if !deleteOpts.Immediate {
    		// add deadlines for all non-immediate purges
    		var cancel context.CancelFunc
    		ctx, cancel = context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    		defer cancel()
    	}
    
    	_, err := storageDeleteFileRPC.Call(ctx, client.gridConn, &DeleteFileHandlerParams{
    		DiskID:   *client.diskID.Load(),
    		Volume:   volume,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. src/net/http/client.go

    	}
    	initialReqCancel := req.Cancel // the user's original Request.Cancel, if any
    
    	var cancelCtx func()
    	if timeBeforeContextDeadline(deadline, oldCtx) {
    		req.ctx, cancelCtx = context.WithDeadline(oldCtx, deadline)
    	}
    
    	cancel := make(chan struct{})
    	req.Cancel = cancel
    
    	doCancel := func() {
    		// The second way in the func comment above:
    		close(cancel)
    		// The first way, used only for RoundTripper
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-decom.go

    	// Return an error when there is decommission on going - the user needs
    	// to explicitly cancel it first in order to restart decommissioning again.
    	if p.Pools[idx].Decommission != nil &&
    		!p.Pools[idx].Decommission.Complete &&
    		!p.Pools[idx].Decommission.Failed &&
    		!p.Pools[idx].Decommission.Canceled {
    		return errDecommissionAlreadyRunning
    	}
    
    	now := UTCNow()
    	p.Pools[idx].LastUpdate = now
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 14:30:43 UTC 2024
    - 41.5K bytes
    - Viewed (1)
  4. internal/dsync/drwmutex.go

    			}
    		}
    	}
    }
    
    func (dm *DRWMutex) startContinuousLockRefresh(lockLossCallback func(), id, source string, quorum int) {
    	ctx, cancel := context.WithCancel(context.Background())
    
    	dm.m.Lock()
    	dm.cancelRefresh = cancel
    	dm.m.Unlock()
    
    	go func() {
    		defer cancel()
    
    		refreshTimer := time.NewTimer(dm.refreshInterval)
    		defer refreshTimer.Stop()
    
    		for {
    			select {
    			case <-ctx.Done():
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go

    		attemptsGot++
    		return nil
    	}
    
    	ctx, cancel := context.WithCancel(context.TODO())
    	cancel()
    
    	// We don't expect the webhook function to be called since the context is already canceled.
    	retryBackoff := wait.Backoff{Steps: 5}
    	err := WithExponentialBackoff(ctx, retryBackoff, webhookFunc, alwaysRetry)
    
    	errExpected := fmt.Errorf("webhook call failed: %s", context.Canceled)
    	if errExpected.Error() != err.Error() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        inFinished: Boolean,
      ) {
        pushQueue.execute("$connectionName[$streamId] onHeaders") {
          val cancel = pushObserver.onHeaders(streamId, requestHeaders, inFinished)
          ignoreIoExceptions {
            if (cancel) writer.rstStream(streamId, ErrorCode.CANCEL)
            if (cancel || inFinished) {
              this.withLock {
                currentPushRequests.remove(streamId)
              }
            }
          }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  7. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    		klog.Infof("successfully acquired lease %v", desc)
    		cancel()
    	}, le.config.RetryPeriod, JitterFactor, true, ctx.Done())
    	return succeeded
    }
    
    // renew loops calling tryAcquireOrRenew and returns immediately when tryAcquireOrRenew fails or ctx signals done.
    func (le *LeaderElector) renew(ctx context.Context) {
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    	wait.Until(func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/os/exec/exec.go

    	ctx context.Context
    
    	Err error // LookPath error, if any.
    
    	// If Cancel is non-nil, the command must have been created with
    	// CommandContext and Cancel will be called when the command's
    	// Context is done. By default, CommandContext sets Cancel to
    	// call the Kill method on the command's Process.
    	//
    	// Typically a custom Cancel will send a signal to the command's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DistributionInstaller.java

            return install.createDist(wrapperConfiguration);
        }
    
        /**
         * Cancels the current installation, if running.
         */
        public void cancel() {
            synchronized (lock) {
                cancelled = true;
                lock.notifyAll();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
        assertThat(future.cancel(false /* mayInterruptIfRunning */)).isTrue();
        assertCancelled(future, false);
      }
    
      public void testInterrupted() throws Exception {
        assertThat(future.cancel(true /* mayInterruptIfRunning */)).isTrue();
        assertCancelled(future, true);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top