class NIO::Selector

def close

Close this selector and free its resources
def close
  @lock.synchronize do
    return if @closed
    @wakeup.close rescue nil
    @waker.close rescue nil
    @closed = true
  end
end