class_docstr: Non-blocking server.
docstr: Stop the server.
  
  This method causes the serve() method to return.  stop() may be invoked
  from within your handler, or from another thread.
  
  After stop() is called, serve() will return but the server will still
  be listening on the socket.  serve() may then be called again to resume
  processing requests.  Alternatively, close() may be called after
  serve() returns to close the server socket and shutdown all worker
  threads.
docstr_tok: ["Stop","the","server",".","This","method","causes","the","serve","(",")","method","to","return",".","stop","(",")","may","be","invoked","from","within","your","handler",",","or","from","another","thread",".","After","stop","(",")","is","called",",","serve","(",")","will","return","but","the","server","will","still","be","listening","on","the","socket",".","serve","(",")","may","then","be","called","again","to","resume","processing","requests",".","Alternatively",",","close","(",")","may","be","called","after","serve","(",")","returns","to","close","the","server","socket","and","shutdown","all","worker","threads","."]
code: def stop(self):
      """Stop the server.
  
      This method causes the serve() method to return.  stop() may be invoked
      from within your handler, or from another thread.
  
      After stop() is called, serve() will return but the server will still
      be listening on the socket.  serve() may then be called again to resume
      processing requests.  Alternatively, close() may be called after
      serve() returns to close the server socket and shutdown all worker
      threads.
      """
      self._stop = True
      self.wake_up()
  
imports: import logging
  import select
  import socket
  import struct
  import threading
  from collections import deque
  from six.moves import queue
  from thrift.transport import TTransport
  from thrift.protocol.TBinaryProtocol import TBinaryProtocolFactory
label_desc: Use image node_id 5 for calling the TNonblockingServer obj's underlying member method code with example usage: obj.stop() without return types