Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for userSelect (0.5 sec)

  1. src/runtime/chanbarrier_test.go

    type response struct {
    }
    
    type myError struct {
    }
    
    func (myError) Error() string { return "" }
    
    func doRequest(useSelect bool) (*response, error) {
    	type async struct {
    		resp *response
    		err  error
    	}
    	ch := make(chan *async, 0)
    	done := make(chan struct{}, 0)
    
    	if useSelect {
    		go func() {
    			select {
    			case ch <- &async{resp: nil, err: myError{}}:
    			case <-done:
    			}
    		}()
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
  3. src/runtime/map_test.go

    			}
    			// trigger a gc
    			runtime.GC()
    			growflag = false
    		}
    	}
    	if bitmask != 1<<16-1 {
    		t.Error("missing key", bitmask)
    	}
    }
    
    func testConcurrentReadsAfterGrowth(t *testing.T, useReflect bool) {
    	t.Parallel()
    	if runtime.GOMAXPROCS(-1) == 1 {
    		defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(16))
    	}
    	numLoop := 10
    	numGrowStep := 250
    	numReader := 16
    	if testing.Short() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top