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)
| 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. |
| 250 | func (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. |