Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func SleepUntil(t time.Time) error type Timer func NewTimer(d time.Duration) *Timer func (self *Timer) C() <-chan time.Time func (self *Timer) Reset(d time.Duration) bool func (self *Timer) Stop() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SleepUntil ¶ func SleepUntil(t time.Time) error See https://www.reddit.com/r/golang/comments/jeqmtt/wake_up_at_time/ Types ¶ type Timer ¶ type Timer struct { // contains filtered or unexported fields } func NewTimer ¶ func NewTimer(d time.Duration) *Timer func (*Timer) C ¶ func (self *Timer) C() <-chan time.Time func (*Timer) Reset ¶ func (self *Timer) Reset(d time.Duration) bool func (*Timer) Stop ¶ func (self *Timer) Stop() bool Stop does nothing, because I don't know how to stop clock_nanosleep. Source Files ¶ View all Source files linux.go timer.go Click to show internal directories. Click to hide internal directories.