Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 125 for DELETE (0.08 sec)

  1. src/net/http/transport.go

    				break
    			}
    		}
    		if q.len() == 0 {
    			delete(t.connsPerHostWait, key)
    		} else {
    			// q is a value (like a slice), so we have to store
    			// the updated q back into the map.
    			t.connsPerHostWait[key] = q
    		}
    		if done {
    			return
    		}
    	}
    
    	// Otherwise, decrement the recorded count.
    	if n--; n == 0 {
    		delete(t.connsPerHost, key)
    	} else {
    		t.connsPerHost[key] = n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. src/testing/fstest/mapfs.go

    		// then the directory is treated as not existing.
    		if file == nil && list == nil && len(need) == 0 {
    			return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    		}
    	}
    	for _, fi := range list {
    		delete(need, fi.name)
    	}
    	for name := range need {
    		list = append(list, mapFileInfo{name, &MapFile{Mode: fs.ModeDir | 0555}})
    	}
    	slices.SortFunc(list, func(a, b mapFileInfo) int {
    		return strings.Compare(a.name, b.name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/crypto/tls/bogo_shim_test.go

    				t.Fatal(result.Error)
    			}
    			if expectedResult, ok := assertResults[name]; ok && expectedResult != result.Actual {
    				t.Fatalf("unexpected result: got %s, want %s", result.Actual, assertResults[name])
    			}
    			delete(assertResults, name)
    			if result.Actual == "SKIP" {
    				t.Skip()
    			}
    		})
    	}
    	if *bogoFilter == "" {
    		// Anything still in assertResults did not show up in the results, so we should fail
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. src/cmd/trace/gstate.go

    		gs.completedRanges = append(gs.completedRanges, completedRange{
    			name:       name,
    			startTime:  r.time,
    			endTime:    ts,
    			startStack: r.stack,
    			endStack:   stack,
    		})
    	}
    	delete(gs.activeRanges, name)
    }
    
    func lastFunc(s trace.Stack) string {
    	var last trace.StackFrame
    	s.Frames(func(f trace.StackFrame) bool {
    		last = f
    		return true
    	})
    	return last.Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. src/net/http/httptest/server.go

    			}
    		case http.StateHijacked, http.StateClosed:
    			// Remove c from the set of tracked conns and decrement it from the
    			// waitgroup, unless it was previously removed.
    			if _, ok := s.conns[c]; ok {
    				delete(s.conns, c)
    				// Keep Close from returning until the user's ConnState hook
    				// (if any) finishes.
    				defer s.wg.Done()
    			}
    		}
    		if oldHook != nil {
    			oldHook(c, cs)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/go/ast/commentmap.go

    // and returns the new node. Comments that were associated with the
    // old node are associated with the new node.
    func (cmap CommentMap) Update(old, new Node) Node {
    	if list := cmap[old]; len(list) > 0 {
    		delete(cmap, old)
    		cmap[new] = append(cmap[new], list...)
    	}
    	return new
    }
    
    // Filter returns a new comment map consisting of only those
    // entries of cmap for which a corresponding node exists in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/encoding/gob/type.go

    	// Does this type implement GobEncoder?
    	if ut.externalEnc != 0 {
    		return newGobEncoderType(name), nil
    	}
    	var err error
    	var type0, type1 gobType
    	defer func() {
    		if err != nil {
    			delete(types, rt)
    		}
    	}()
    	// Install the top-level type before the subtypes (e.g. struct before
    	// fields) so recursive types can be constructed safely.
    	switch t := rt; t.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  8. src/go/types/typestring.go

    		panic(msg)
    	}
    	w.buf.WriteString("<" + msg + ">")
    }
    
    func (w *typeWriter) typ(typ Type) {
    	if w.seen[typ] {
    		w.error("cycle to " + goTypeName(typ))
    		return
    	}
    	w.seen[typ] = true
    	defer delete(w.seen, typ)
    
    	switch t := typ.(type) {
    	case nil:
    		w.error("nil")
    
    	case *Basic:
    		// exported basic types go into package unsafe
    		// (currently this is just unsafe.Pointer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/internal/trace/order.go

    	// Handle each case slightly differently; we just group them together
    	// because they have shared preconditions.
    	newCtx := curCtx
    	switch ev.typ {
    	case go122.EvGoDestroy:
    		// This goroutine is exiting itself.
    		delete(o.gStates, curCtx.G)
    		newCtx.G = NoGoroutine
    	case go122.EvGoStop:
    		// Goroutine stopped (yielded). It's runnable but not running on this M.
    		state.status = go122.GoRunnable
    		newCtx.G = NoGoroutine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typestring.go

    		panic(msg)
    	}
    	w.buf.WriteString("<" + msg + ">")
    }
    
    func (w *typeWriter) typ(typ Type) {
    	if w.seen[typ] {
    		w.error("cycle to " + goTypeName(typ))
    		return
    	}
    	w.seen[typ] = true
    	defer delete(w.seen, typ)
    
    	switch t := typ.(type) {
    	case nil:
    		w.error("nil")
    
    	case *Basic:
    		// exported basic types go into package unsafe
    		// (currently this is just unsafe.Pointer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top