- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for Stop (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/buildall.bash
# As of CL 464955, the build system uses make.bash -compile-only instead, # so this script no longer runs in any automated fashion. # # Options: # -e: stop at first failure if [ ! -f run.bash ]; then echo 'buildall.bash must be run from $GOROOT/src' 1>&2 exit 1 fi sete=false if [ "$1" = "-e" ]; then sete=true shift fi
Shell Script - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Apr 23 17:45:23 GMT 2024 - 2.1K bytes - Viewed (0) -
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) -
src/builtin/builtin.go
// by restoring normal execution and retrieves the error value passed to the // call of panic. If recover is called outside the deferred function it will // not stop a panicking sequence. In this case, or when the goroutine is not // panicking, recover returns nil. // // Prior to Go 1.21, recover would also return nil if panic is called with // a nil argument. See [panic] for details.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 12.7K bytes - Viewed (0)