Documentation ¶
Overview ¶
Package delay implements a delayable timer.
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 is a delayable timer. The time cannot be delayed or reused after it fires.
func WithTimer ¶
WithTimer returns a context that is canceled when a delayable timer fires.
Note that the returned timer's channel should not be used; only the Set/Stop methods should be used.
Click to show internal directories.
Click to hide internal directories.