Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StopChannel ¶ added in v0.0.17
type StopChannel chan bool
StopChannel a bool channel.
func RepeatUntilStopped ¶ added in v0.0.17
func RepeatUntilStopped(delay time.Duration, f func()) StopChannel
RepeatUntilStopped creates a goroutine that loops, waiting the delay provided and then calling the function provided. The loop can be stopped by sending a value to returned StopChannel.
Click to show internal directories.
Click to hide internal directories.