Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 209 for cancel3b (0.13 sec)

  1. internal/grid/muxclient.go

    	}
    }
    
    func (m *muxClient) close() {
    	if debugPrint {
    		fmt.Println("closing outgoing mux", m.MuxID)
    	}
    	if !m.respMu.TryLock() {
    		// Cancel before locking - will unblock any pending sends.
    		if m.cancelFn != nil {
    			m.cancelFn(context.Canceled)
    		}
    		// Wait for senders to release.
    		m.respMu.Lock()
    	}
    
    	defer m.respMu.Unlock()
    	m.closeLocked()
    }
    
    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. internal/grid/stream.go

    // Results returns the results from the remote server one by one.
    // If any error is returned by the callback, the stream will be canceled.
    // If the context is canceled, the stream will be canceled.
    func (s *Stream) Results(next func(b []byte) error) (err error) {
    	done := false
    	defer func() {
    		if s.cancel != nil {
    			s.cancel(err)
    		}
    
    		if !done {
    			// Drain channel.
    			for range s.responses {
    			}
    		}
    	}()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

                                condition.await();
                                break;
                            case Canceled:
                                LOGGER.debug("cancel requested.");
                                DaemonStopState state = cancelNow();
                                if (state != null) {
                                    // Could not cancel cleanly, so stop
                                    return state;
                                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/dra/plugin/noderesources.go

    // and the gRPC stream that is used to retrieve that. The context
    // used by that stream can be canceled separately to stop
    // the monitoring.
    type activePlugin struct {
    	// cancel is the function which cancels the monitorPlugin goroutine
    	// for this plugin.
    	cancel func(reason error)
    
    	// resources is protected by the nodeResourcesController read/write lock.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 20:12:53 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. internal/config/lambda/target/webhook.go

    	ctx, cancel := context.WithCancel(ctx)
    
    	target := &WebhookTarget{
    		id:         event.TargetID{ID: id, Name: "webhook"},
    		args:       args,
    		loggerOnce: loggerOnce,
    		transport:  transport,
    		cancel:     cancel,
    		cancelCh:   ctx.Done(),
    	}
    
    	return target, nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. internal/grid/connection.go

    			Msg: m.Payload,
    			Err: nil,
    		})
    	}
    	if m.Flags&FlagEOF != 0 {
    		if v.cancelFn != nil && m.Flags&FlagPayloadIsErr == 0 {
    			// We must obtain the lock before calling cancelFn
    			// Otherwise others may pick up the error before close is called.
    			v.respMu.Lock()
    			v.cancelFn(errStreamEOF)
    			v.closeLocked()
    			v.respMu.Unlock()
    		} else {
    			v.close()
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. internal/event/target/webhook.go

    	}
    
    	target := &WebhookTarget{
    		id:         event.TargetID{ID: id, Name: "webhook"},
    		args:       args,
    		loggerOnce: loggerOnce,
    		transport:  transport,
    		store:      queueStore,
    		cancel:     cancel,
    		cancelCh:   ctx.Done(),
    	}
    
    	// Calculate the webhook addr with the port number format
    	target.addr = args.Endpoint.Host
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. .github/workflows/upgrade-ci-cd.yaml

    name: Upgrade old version tests
    
    on:
      pull_request:
        branches:
          - master
    
    # This ensures that previous jobs for the PR are canceled when the PR is
    # updated.
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref }}
      cancel-in-progress: true
    
    permissions:
      contents: read
    
    jobs:
      build:
        name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
        runs-on: ${{ matrix.os }}
        strategy:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 729 bytes
    - Viewed (0)
  9. .github/workflows/helm-lint.yml

    name: Helm Chart linting
    
    on:
      pull_request:
        branches:
          - master
    
    # This ensures that previous jobs for the PR are canceled when the PR is
    # updated.
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref }}
      cancel-in-progress: true
    
    permissions:
      contents: read
    
    jobs:
      release:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout
            uses: actions/checkout@v4
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 09 09:13:09 UTC 2024
    - 551 bytes
    - Viewed (0)
  10. src/net/http/transport.go

    	//
    	// If RoundTrip returns an error, it cancels this context before returning.
    	//
    	// If RoundTrip returns no error:
    	//   - For an HTTP/1 request, persistConn.readLoop cancels this context
    	//     after reading the request body.
    	//   - For an HTTP/2 request, RoundTrip cancels this context after the HTTP/2
    	//     RoundTripper returns.
    	ctx, cancel := context.WithCancelCause(req.Context())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top