register

fun register(selectorKey: String, selector: ISelector)(source)

Registers the given selector with the given key or throws an exception, if there was a selector or load selector registered for the given key.

Parameters

selectorKey

The key (as in key-value pair) to register a selector for

selector

The selector instance