Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for cancel0 (0.13 sec)

  1. internal/grid/muxclient.go

    		return &Stream{responses: responseCh, Requests: nil, ctx: m.ctx, cancel: m.cancelFn, muxID: m.MuxID}, nil
    	}
    
    	// Deliver responses and send unblocks back to the server.
    	go m.handleTwowayResponses(responseCh, responses)
    	go m.handleTwowayRequests(responses, requests)
    
    	return &Stream{responses: responseCh, Requests: requests, ctx: m.ctx, cancel: m.cancelFn, muxID: m.MuxID}, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

            CountdownTimer timer = Time.startCountdownTimer(cancelTimeoutMs);
    
            LOGGER.debug("Cancel requested: will wait for daemon to become idle.");
            try {
                cancellationToken.cancel();
            } catch (Exception ex) {
                LOGGER.error("Cancel processing failed. Will continue.", ex);
            }
    
            lock.lock();
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/plugin/noderesources.go

    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    
    	if active := c.activePlugins[driverName]; active != nil {
    		active.cancel(errors.New("plugin has re-registered"))
    	}
    	active := &activePlugin{}
    	cancelCtx, cancel := context.WithCancelCause(c.ctx)
    	active.cancel = cancel
    	c.activePlugins[driverName] = active
    	c.queue.Add(driverName)
    
    	c.wg.Add(1)
    	go func() {
    		defer c.wg.Done()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 20:12:53 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. internal/grid/connection.go

    	c.updateState(StateConnected)
    	ctx, cancel := context.WithCancelCause(ctx)
    	defer cancel(ErrDisconnected)
    
    	// This will ensure that is something asks to disconnect and we are blocked on reads/writes
    	// the connection will be closed and readers/writers will unblock.
    	go c.monitorState(conn, cancel)
    
    	c.handleMsgWg.Add(2)
    	c.reconnectMu.Unlock()
    
    	// Read goroutine
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  5. src/crypto/tls/quic.go

    	eventArr [8]QUICEvent
    
    	started  bool
    	signalc  chan struct{}   // handshake data is available to be read
    	blockedc chan struct{}   // handshake is waiting for data, closed when done
    	cancelc  <-chan struct{} // handshake has been canceled
    	cancel   context.CancelFunc
    
    	waitingForDrain bool
    
    	// readbuf is shared between HandleData and the handshake goroutine.
    	// HandshakeCryptoData passes ownership to the handshake goroutine by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. internal/logger/target/http/http.go

    		atomic.AddInt64(&h.failedMessages, 1)
    		return errors.New("log buffer full")
    	}
    
    	return nil
    }
    
    // Cancel - cancels the target.
    // All queued messages are flushed and the function returns afterwards.
    // All messages sent to the target after this function has been called will be dropped.
    func (h *Target) Cancel() {
    	atomic.StoreInt32(&h.status, statusClosed)
    	h.storeCtxCancel()
    
    	// Wait for messages to be sent...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. src/net/lookup_test.go

    		// GODEBUG=netdns=go.
    		N = 500
    	}
    
    	const timeout = 3 * time.Second
    	ctxHalfTimeout, cancel := context.WithTimeout(context.Background(), timeout/2)
    	defer cancel()
    	ctxTimeout, cancel := context.WithTimeout(context.Background(), timeout)
    	defer cancel()
    
    	c := make(chan error, 2*N)
    	for i := 0; i < N; i++ {
    		name := fmt.Sprintf("%d.net-test.golang.org", i)
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  8. src/os/exec/exec_test.go

    }
    
    func TestCancelErrors(t *testing.T) {
    	t.Parallel()
    
    	// If Cancel returns a non-ErrProcessDone error and the process
    	// exits successfully, Wait should wrap the error from Cancel.
    	t.Run("success after error", func(t *testing.T) {
    		t.Parallel()
    
    		ctx, cancel := context.WithCancel(context.Background())
    		defer cancel()
    
    		cmd := helperCommandContext(t, ctx, "pipetest")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  9. internal/logger/target/kafka/kafka.go

    	if err != nil {
    		atomic.AddInt64(&h.failedMessages, 1)
    		return
    	}
    	// Delete the event from store.
    	return h.store.Del(key.Name)
    }
    
    // Cancel - cancels the target
    func (h *Target) Cancel() {
    	// If queuestore is configured, cancel it's context to
    	// stop the replay go-routine.
    	if h.store != nil {
    		h.storeCtxCancel()
    	}
    
    	// Set logch to nil and close it.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy

            sync.waitForAllPendingCalls(resultHandler)
            cancellation.cancel()
            Thread.sleep(200) // The daemon seems to drop messages arriving the same time
            connector.disconnect()
            resultHandler.finished()
    
            then:
            resultHandler.assertFailedWith(BuildCancelledException)
        }
    
        def "can call cancel after disconnect"() {
            buildFile.text = """
                task hang {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top