HandlerFunc makes the func implement the Handler interface.
(handler func(Event))
| 32 | |
| 33 | // HandlerFunc makes the func implement the Handler interface. |
| 34 | func HandlerFunc(handler func(Event)) Handler { |
| 35 | return &handlerFunc{handler} |
| 36 | } |
| 37 | |
| 38 | // Channel is a channel of Events that can be used as an event handler. |
| 39 | // The channel should be buffered, events will be dropped if the channel blocks. |
no outgoing calls