Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct { C <-chan struct{} // The timer channel // contains filtered or unexported fields }
Timer is a timer t that fires exactly once. The channel t.C will be closed when the timer fires. The duration after which the timer should fire can be decreased via the t.Duration method. You can call t.Duration multiple times, the first duration to expire will cause the timer to fire. If you stop using the timer before it has fired, call t.Stop to prevent resources leaking.
Click to show internal directories.
Click to hide internal directories.