code: func (ed *Dispatcher) clearBlockRegistrations(closeChannel bool) {
  	if closeChannel {
  		for _, reg := range ed.blockRegistrations {
  			close(reg.Eventch)
  		}
  	}
  	ed.blockRegistrations = nil
  }
docs: // clearBlockRegistrations removes all block registrations and closes the corresponding event channels.
  // The listener will receive a 'closed' event to indicate that the channel has been closed.