Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for afterFunc (0.12 sec)

  1. src/time/tick_test.go

    	// which needed 77 seconds.
    	// Trybots are slower, so it will fail even more reliably there.
    	// With the fix, the code runs in under a second.
    	done := make(chan bool)
    	AfterFunc(60*Second, func() { close(done) })
    
    	// Set up a queuing goroutine to ping pong through the scheduler.
    	inQ := make(chan func())
    	outQ := make(chan func())
    
    	defer close(inQ)
    
    	wg.Add(1)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    	// Wait for the server start the request.
    	<-reqStarted
    
    	// Block until we have exceeded the deadline several times over.
    	nowBlocking := make(chan struct{})
    	var mu sync.Mutex
    	time.AfterFunc(time.Second, func() {
    		mu.Lock()
    		cancel()
    		close(nowBlocking)
    		mu.Unlock()
    	})
    	if inCap > 0 {
    		go func() {
    			defer close(st.Requests)
    			if !blockReq {
    				<-nowBlocking
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top