Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer manages a lazily-created, resettable one-shot deadline timer.
The timer is allocated only while active. Stop clears the timer reference so the runtime can recover it when no deadline is active.
func (*Timer) C ¶
C returns the timer channel while active.
A nil channel is ignored by select, which lets callers keep one simple select regardless of whether a deadline is active.
Click to show internal directories.
Click to hide internal directories.