registerHandler<E> method

Handler<E> registerHandler<E>(
  1. String name,
  2. Handler<E> handler
)

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;
}