- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 502 for timerC (0.11 sec)
-
doc/next/6-stdlib/1-time.md
### Timer changes Go 1.23 makes two significant changes to the implementation of [time.Timer] and [time.Ticker]. <!-- go.dev/issue/61542 --> First, `Timer`s and `Ticker`s that are no longer referred to by the program become eligible for garbage collection immediately, even if their `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.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 20:49:22 UTC 2024 - 1.5K bytes - Viewed (0) -
src/time/internal_test.go
// bad when on update), or other timers will hang (if the timer in a // heap is in a bad state). There is no reliable way to test this, but // we wait on a short timer here as a smoke test (alternatively, timers // in later tests may hang). <-After(25 * Millisecond) } var ( MinMonoTime = Time{wall: 1 << 63, ext: -1 << 63, loc: UTC} MaxMonoTime = Time{wall: 1 << 63, ext: 1<<63 - 1, loc: UTC}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:37 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/test/loadbalancersim/timer/queue.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 19:13:32 UTC 2023 - 3.6K bytes - Viewed (0) -
src/internal/poll/fd_plan9.go
// Interrupt I/O operation once timer has expired if mode == 'r' || mode == 'r'+'w' { var timer *time.Timer timer = time.AfterFunc(d, func() { fd.rmu.Lock() defer fd.rmu.Unlock() if fd.rtimer != timer { // deadline was changed return } fd.rtimedout = true if fd.raio != nil { fd.raio.Cancel() } }) fd.rtimer = timer }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 5.4K bytes - Viewed (0) -
src/time/tick_test.go
// from the timer/ticker channel after Reset. // When using Go 1.23 sync timers/tickers, draining is never needed // (that's the whole point of the sync timer/ticker change). drain1 := func() { for range drainTries { select { case <-C: return default: } Sleep(sched) } } // drainAsync removes potential stale time values after Stop/Reset.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:10:37 UTC 2024 - 14.7K bytes - Viewed (0) -
src/time/time.go
// // Programs using times should typically store and pass them as values, // not pointers. That is, time variables and struct fields should be of // type [time.Time], not *time.Time. // // A Time value can be used by multiple goroutines simultaneously except // that the methods [Time.GobDecode], [Time.UnmarshalBinary], [Time.UnmarshalJSON] and // [Time.UnmarshalText] are not concurrency-safe. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/delay.go
import ( "context" "sync" "time" "k8s.io/utils/clock" ) // DelayFunc returns the next time interval to wait. type DelayFunc func() time.Duration // Timer takes an arbitrary delay function and returns a timer that can handle arbitrary interval changes. // Use Backoff{...}.Timer() for simple delays and more efficient timers. func (fn DelayFunc) Timer(c clock.Clock) Timer { return &variableTimer{fn: fn, new: c.NewTimer}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/nonwindows_stub.go
//go:build !windows package runtime // osRelaxMinNS is the number of nanoseconds of idleness to tolerate // without performing an osRelax. Since osRelax may reduce the // precision of timers, this should be enough larger than the relaxed // timer precision to keep the timer error acceptable. const osRelaxMinNS = 0 var haveHighResSleep = true // osRelax is called by the scheduler when transitioning to and from // all Ps being idle.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 03:12:13 UTC 2024 - 962 bytes - Viewed (0) -
src/runtime/mklockrank.go
< allocmR, execR; allocmR, execR, hchan < sched; sched < allg, allp; # Channels NONE < notifyList; hchan, notifyList < sudog; hchan, pollDesc, wakeableSleep < timers; timers, timerSend < timer < netpollInit; # Semaphores NONE < root; # Itabs NONE < itab < reflectOffs; # User arena state NONE < userArenaState; # Tracing without a P uses a global trace buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 19 02:48:08 UTC 2023 - 15.8K bytes - Viewed (0)