Browse Source

Remove SubscribeToEvent

pull/1842/head
Jae Kwon 9 years ago
parent
commit
7b75ca7bb5
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      events.go

+ 0
- 10
events.go View File

@ -128,16 +128,6 @@ func (evsw *EventSwitch) FireEvent(event string, data EventData) {
eventCell.FireEvent(data)
}
func (evsw *EventSwitch) SubscribeToEvent(receiver, eventID string, chanCap int) chan interface{} {
// listen for new round
ch := make(chan interface{}, chanCap)
evsw.AddListenerForEvent(receiver, eventID, func(data EventData) {
// NOTE: in production, evsw callbacks should be nonblocking.
ch <- data
})
return ch
}
//-----------------------------------------------------------------------------
// eventCell handles keeping track of listener callbacks for a given event.


Loading…
Cancel
Save