Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LoadOrStore (0.12 sec)

  1. src/sync/map.go

    // read and write operations are defined as follows.
    // [Map.Load], [Map.LoadAndDelete], [Map.LoadOrStore], [Map.Swap], [Map.CompareAndSwap],
    // and [Map.CompareAndDelete] are read operations;
    // [Map.Delete], [Map.LoadAndDelete], [Map.Store], and [Map.Swap] are write operations;
    // [Map.LoadOrStore] is a write operation when it returns loaded set to false;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. schema/schema.go

    			}
    		}
    	}
    
    	// Cache the schema
    	if v, loaded := cacheStore.LoadOrStore(schemaCacheKey, schema); loaded {
    		s := v.(*Schema)
    		// Wait for the initialization of other goroutines to complete
    		<-s.initialized
    		return s, s.err
    	}
    
    	defer func() {
    		if schema.err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. internal/grid/connection.go

    			client.cancelFn(context.DeadlineExceeded)
    			return nil, context.DeadlineExceeded
    		}
    	}
    	for {
    		// Handle the extremely unlikely scenario that we wrapped.
    		if _, loaded := c.outgoing.LoadOrStore(client.MuxID, client); client.MuxID != 0 && !loaded {
    			if debugReqs {
    				_, found := c.outgoing.Load(client.MuxID)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  4. src/os/exec/exec_test.go

    // which to run the command.
    func helperCommandContext(t *testing.T, ctx context.Context, name string, args ...string) (cmd *exec.Cmd) {
    	helperCommandUsed.LoadOrStore(name, true)
    
    	t.Helper()
    	testenv.MustHaveExec(t)
    
    	cs := append([]string{name}, args...)
    	if ctx != nil {
    		cmd = exec.CommandContext(ctx, exePath(t), cs...)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top