Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for WithCancelCause (0.29 sec)

  1. internal/grid/muxclient.go

    }
    
    // Response is a response from the server.
    type Response struct {
    	Msg []byte
    	Err error
    }
    
    func newMuxClient(ctx context.Context, muxID uint64, parent *Connection) *muxClient {
    	ctx, cancelFn := context.WithCancelCause(ctx)
    	return &muxClient{
    		MuxID:              muxID,
    		ctx:                ctx,
    		cancelFn:           cancelFn,
    		parent:             parent,
    		LastPong:           time.Now().UnixNano(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. cmd/batch-expire.go

    	if err != nil {
    		return err
    	}
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		// invalid worker size.
    		return err
    	}
    
    	ctx, cancelCause := context.WithCancelCause(ctx)
    	defer cancelCause(nil)
    
    	results := make(chan itemOrErr[ObjectInfo], workerSize)
    	go func() {
    		prefixes := r.Prefix.F()
    		if len(prefixes) == 0 {
    			prefixes = []string{""}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    			return err
    		}
    
    		walkQuorum := env.Get("_MINIO_BATCH_REPLICATION_WALK_QUORUM", "strict")
    		if walkQuorum == "" {
    			walkQuorum = "strict"
    		}
    		ctx, cancelCause := context.WithCancelCause(ctx)
    		// one of source/target is s3, skip delete marker and all versions under the same object name.
    		s3Type := r.Target.Type == BatchJobReplicateResourceS3 || r.Source.Type == BatchJobReplicateResourceS3
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. internal/grid/connection.go

    // handleMessages will handle incoming messages on conn.
    // caller *must* hold reconnectMu.
    func (c *Connection) handleMessages(ctx context.Context, conn net.Conn) {
    	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.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    	if err := checkListObjsArgs(ctx, bucket, prefix, ""); err != nil {
    		xioutil.SafeClose(results)
    		return err
    	}
    	parentCtx := ctx
    	ctx, cancelCause := context.WithCancelCause(ctx)
    	var entries []chan metaCacheEntry
    
    	for poolIdx, erasureSet := range z.serverPools {
    		for setIdx, set := range erasureSet.sets {
    			set := set
    			listOut := make(chan metaCacheEntry, 1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  6. api/go1.20.txt

    pkg bytes, func CutPrefix([]uint8, []uint8) ([]uint8, bool) #42537
    pkg bytes, func CutSuffix([]uint8, []uint8) ([]uint8, bool) #42537
    pkg context, func Cause(Context) error #51365
    pkg context, func WithCancelCause(Context) (Context, CancelCauseFunc) #51365
    pkg context, type CancelCauseFunc func(error) #51365
    pkg crypto/ecdh, func P256() Curve #52221
    pkg crypto/ecdh, func P384() Curve #52221
    pkg crypto/ecdh, func P521() Curve #52221
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
Back to top