Registers the handler for one kind of operation.
A handler may return a value or a promise.
the operation's name
the handler
an Error when fn is not a function or the kind is already registered
fn
Registers the handler for one kind of operation.
A handler may return a value or a promise.