Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAfterFuncStarvation (0.4 sec)

  1. src/time/sleep_test.go

    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			for i := 0; i < 100; i++ {
    				<-ticker.C
    			}
    		}()
    	}
    	wg.Wait()
    	ticker.Stop()
    	stop.Store(true)
    }
    
    func TestAfterFuncStarvation(t *testing.T) {
    	// Start two goroutines ping-ponging on a channel send.
    	// At any given time, at least one of these goroutines is runnable:
    	// if the channel buffer is full, the receiver is runnable,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top