Example of using selector to handle timer and GPIO interrupts
Selector.add(...) defaults event mask to INPUT|ERROR