Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(f RefreshFunc, tickCh <-chan time.Time, timeout time.Duration, cancelCh <-chan struct{}) (<-chan error, <-chan struct{})
New starts a new loop to call f and returns two channels, one for errors that come out of the calls to f or the refresh loop, and one for signaling every time f returns successfully.
Types ¶
type RefreshFunc ¶
type RefreshFunc func(cancel <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.