Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poll ¶
type Poll struct {
// contains filtered or unexported fields
}
type Poller ¶
type Poller interface { // Subscribe subscribes to the poller with a handler function that will be invoked // Must only be called once. If the handler is busy during a tick, the next tick will be skipped. Subscribe(ctx context.Context, handler func()) // Stop stops the poller. That means no more events will be emitted. Stop() error }
Click to show internal directories.
Click to hide internal directories.