Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Stop (0.23 sec)

  1. src/bufio/example_test.go

    func ExampleScanner_earlyStop() {
    	onComma := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
    		i := bytes.IndexByte(data, ',')
    		if i == -1 {
    			if !atEOF {
    				return 0, nil, nil
    			}
    			// If we have reached the end, return the last token.
    			return 0, data, bufio.ErrFinalToken
    		}
    		// If the token is "STOP", stop the scanning and ignore the rest.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. doc/next/6-stdlib/1-time.md

    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Second, the timer channel associated with a `Timer` or `Ticker` is
    now unbuffered, with capacity 0.
    The main effect of this change is that Go now guarantees
    that for any call to a `Reset` or `Stop` method, no stale values
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    			break
    		}
    	}
    
    	// Now look for the first ASCII non-space byte from the end
    	stop := len(s)
    	for ; stop > start; stop-- {
    		c := s[stop-1]
    		if c >= utf8.RuneSelf {
    			return TrimFunc(s[start:stop], unicode.IsSpace)
    		}
    		if asciiSpace[c] == 0 {
    			break
    		}
    	}
    
    	// At this point s[start:stop] starts and ends with an ASCII
    	// non-space bytes, so we're done. Non-ASCII cases have already
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. doc/godebug.md

    and the [go command documentation](/cmd/go#hdr-Build_and_test_caching).
    
    ### Go 1.23
    
    Go 1.23 changed the channels created by package time to be unbuffered
    (synchronous), which makes correct use of the [`Timer.Stop`](/pkg/time/#Timer.Stop)
    and [`Timer.Reset`](/pkg/time/#Timer.Reset) method results much easier.
    The [`asynctimerchan` setting](/pkg/time/#NewTimer) disables this change.
    There are no runtime metrics for this change,
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    }
    
    // ErrFinalToken is a special sentinel error value. It is intended to be
    // returned by a Split function to indicate that the scanning should stop
    // with no error. If the token being delivered with this error is not nil,
    // the token is the last token.
    //
    // The value is useful to stop processing early or when it is necessary to
    // deliver a final empty token (which is different from a nil token).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/cgo_thread_lock.go

    	testThreadLockFunc = testThreadLock
    }
    
    func testThreadLock(t *testing.T) {
    	stop := make(chan int)
    	go func() {
    		// We need the G continue running,
    		// so the M has a chance to run this G.
    		for {
    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    of an error message on a given line to deduce the information it
    needs. The program is syntactically valid regardless of whether each
    name is a type or an ordinary identifier, so there will be no syntax
    errors that might stop parsing early.
    
    An error on not-declared:1 indicates that foo is undeclared.
    An error on not-type:1 indicates that foo is not a type (if declared at all, it is an identifier).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  8. api/go1.5.txt

    pkg runtime, func StartTrace() error
    pkg runtime, func StopTrace()
    pkg runtime, type MemStats struct, GCCPUFraction float64
    pkg runtime/trace, func Start(io.Writer) error
    pkg runtime/trace, func Stop()
    pkg strings, func Compare(string, string) int
    pkg strings, func LastIndexByte(string, uint8) int
    pkg strings, method (*Reader) Size() int64
    pkg syscall (darwin-386), type SysProcAttr struct, Ctty int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    Comments serve as program documentation. There are two forms:
    </p>
    
    <ol>
    <li>
    <i>Line comments</i> start with the character sequence <code>//</code>
    and stop at the end of the line.
    </li>
    <li>
    <i>General comments</i> start with the character sequence <code>/*</code>
    and stop with the first subsequent character sequence <code>*/</code>.
    </li>
    </ol>
    
    <p>
    A comment cannot start inside a <a href="#Rune_literals">rune</a> or
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  10. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_START = 8
    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_START ideal-int
    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_STOP = 4
    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_STOP ideal-int
    pkg syscall (netbsd-arm64-cgo), const TIOCPTMGET = 1076393030
    pkg syscall (netbsd-arm64-cgo), const TIOCPTMGET ideal-int
    pkg syscall (netbsd-arm64-cgo), const TIOCPTSNAME = 1076393032
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
Back to top