registerHandler<E> method
Register a handler function Handler<T> with name
which digests an event T
.
Implementation
Handler<E> registerHandler<E>(String name, Handler<E> handler) {
_handlers[name] = _RuntimeHandler(E, handler);
return handler;
}