'[API] Request exit from the ioloop. The loop is NOT guaranteed to
stop before this method returns. This is the only method that may be
called from another thread.'

def stop(self):

    self._poller.stop()
