Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller executes a polling function on an interval.
func New ¶
New returns a new poller for the given source. A ticker with the provided polling interval will be started immediately, but an invocation of the polling function will not run until its interval has elapsed. If immediate invocation is desired the Poll function should be called immediately after the poller has been created.
Click to show internal directories.
Click to hide internal directories.