Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Sleep (0.18 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    			// with EAGAIN.
    			if pe, ok := err.(*os.PathError); ok {
    				err = pe.Err
    			}
    			if se, ok := err.(syscall.Errno); ok && (se == syscall.EAGAIN || se == syscall.EMFILE) {
    				time.Sleep(time.Millisecond)
    				continue
    			}
    
    			t.Error(err)
    			return
    		}
    		cmds = append(cmds, cmd)
    	}
    
    	failures := 0
    	for _, cmd := range cmds {
    		err := cmd.Wait()
    		if err == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. misc/ios/go_ios_exec.go

    			"-i", appdir,
    		))
    		if out, err := cmd.CombinedOutput(); err != nil {
    			// Sometimes, installing the app fails for some reason.
    			// Give the device a few seconds and try again.
    			if attempt < 5 {
    				time.Sleep(5 * time.Second)
    				attempt++
    				continue
    			}
    			os.Stderr.Write(out)
    			return fmt.Errorf("ideviceinstaller -i %q: %v (%d attempts)", appdir, err, attempt)
    		}
    		return nil
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    When the function terminates, its goroutine also terminates.
    If the function has any return values, they are discarded when the
    function completes.
    </p>
    
    <pre>
    go Server()
    go func(ch chan&lt;- bool) { for { sleep(10); ch &lt;- true }} (c)
    </pre>
    
    
    <h3 id="Select_statements">Select statements</h3>
    
    <p>
    A "select" statement chooses which of a set of possible
    <a href="#Send_statements">send</a> or
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. misc/go_android_exec/main.go

    	// it to be ready. adb wait-for-device is not enough, we have to
    	// wait for sys.boot_completed.
    	if err := adb("wait-for-device", "exec-out", "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"); err != nil {
    		return 0, err
    	}
    
    	// Done once per make.bash.
    	if err := adbCopyGoroot(); err != nil {
    		return 0, err
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg time, func Now() Time
    pkg time, func Parse(string, string) (Time, error)
    pkg time, func ParseDuration(string) (Duration, error)
    pkg time, func Since(Time) Duration
    pkg time, func Sleep(Duration)
    pkg time, func Tick(Duration) <-chan Time
    pkg time, func Unix(int64, int64) Time
    pkg time, method (*Location) String() string
    pkg time, method (*ParseError) Error() string
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  6. doc/go_spec.html

    When the function terminates, its goroutine also terminates.
    If the function has any return values, they are discarded when the
    function completes.
    </p>
    
    <pre>
    go Server()
    go func(ch chan&lt;- bool) { for { sleep(10); ch &lt;- true }} (c)
    </pre>
    
    
    <h3 id="Select_statements">Select statements</h3>
    
    <p>
    A "select" statement chooses which of a set of possible
    <a href="#Send_statements">send</a> or
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
Back to top