MCPcopy
hub / github.com/tailscale/tailscale / SetTimerChannelSize

Method SetTimerChannelSize

tstest/clock.go:250–255  ·  view source on GitHub ↗

SetTimerChannelSize changes the channel size for any Timer or Ticker created in the future. It does not affect those that were already created.

(n int)

Source from the content-addressed store, hash-verified

248// SetTimerChannelSize changes the channel size for any Timer or Ticker created
249// in the future. It does not affect those that were already created.
250func (c *Clock) SetTimerChannelSize(n int) {
251 c.init()
252 c.mu.Lock()
253 defer c.mu.Unlock()
254 c.timerChannelSize = n
255}
256
257// NewTicker returns a Ticker that uses this Clock for accessing the current
258// time.

Callers

nothing calls this directly

Implementers 3

DefaultClocktstime/tstime.go
StdClocktstime/tstime.go
Clocktstest/clock.go

Calls 3

initMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected