Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
Timer is a struct for a timer
func NewTimer ¶
NewTimer creates a new timer with a duration and a callback function that is called when the timer is expired
func (*Timer) IsCancelled ¶ added in v0.4.11
IsCancelled returns true if the timer is cancelled
func (*Timer) IsCompleted ¶ added in v0.4.11
IsCompleted returns true if the timer is completed
func (*Timer) SetCancelled ¶ added in v0.4.11
SetCancelled sets the cancelled flag
func (*Timer) SetCompleted ¶ added in v0.4.11
SetCompleted sets the completed flag
Click to show internal directories.
Click to hide internal directories.