time (ms) to wait before dropping event, when event queue is full Creates a new event manager. Sets up the event channel for async events, and the goroutine to monitor and process that channel.
(terminator chan bool)
| 56 | // Creates a new event manager. Sets up the event channel for async events, and the goroutine to |
| 57 | // monitor and process that channel. |
| 58 | func NewEventManager(terminator chan bool) *EventManager { |
| 59 | return &EventManager{ |
| 60 | eventHandlers: make(map[EventType][]EventHandler, 0), |
| 61 | activeEventTypes: make(map[EventType]bool), |
| 62 | terminator: terminator, |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // Starts the listener queue for the event manager |
| 67 | func (em *EventManager) Start(ctx context.Context, maxProcesses uint, waitTime int) { |
no outgoing calls