#NEWLINE# def close( self , all_fds = False ) : #NEWLINE# #INDENT# with self . _callback_lock : #NEWLINE# #INDENT# self . _closing = True #NEWLINE# #UNINDENT# self . remove_handler ( self . _waker . fileno ( ) ) #NEWLINE# if all_fds : #NEWLINE# #INDENT# for ( fd , handler ) in self . _handlers . values ( ) : #NEWLINE# #INDENT# self . close_fd ( fd ) #NEWLINE# #UNINDENT# #UNINDENT# self . _waker . close ( ) #NEWLINE# self . _impl . close ( ) #NEWLINE# self . _callbacks = None #NEWLINE# self . _timeouts = None