package
Version:
v3.4.0
Opens a new window with list of versions in this module.
Published: Aug 6, 2024
License: ISC
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Ticker struct {
C <-chan time.Time
}
Reset resets the ticker. If this is the first time calling, then a new timer
is created.
Stop stops the ticker. If the ticker has never been used, then it does
nothing.
type Timer struct {
C <-chan time.Time
}
Reset resets the timer by draining it and resetting the internal channel. If
this is the first time calling, then a new timer is created.
Stop stops the timer and drains it. If the timer has never been used, then it
does nothing.
Wait blocks until the timer fires or until the context expires.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.