Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alarm ¶
type Alarm struct {
Send chan<- Event
Receive <-chan Event
// contains filtered or unexported fields
}
Alarm resends events at the requested time, or later. Closing the Send channel asks the alarm to terminate, which is notified by closing Receive.
type Option ¶ added in v0.0.7
type Option func(evt *Alarm)
var ( // Events received by Alarm with Time greater than any waiting event are ignored. DiscardLaterEvent Option = func(evt *Alarm) { evt.discardLaterEvent = true } // Event received with same Data as any waiting event are ignored. DiscardDuplicates Option = func(evt *Alarm) { evt.discardDuplicates = true } )
Click to show internal directories.
Click to hide internal directories.