Code example for Selector

Methods: sleepclosewakeup