#NEWLINE# def stop( self ) : #NEWLINE# #INDENT# 'Stop the scheduler' #NEWLINE# assert self . _shutdown #NEWLINE# if self . _latency_call : #NEWLINE# #INDENT# self . _latency_call . cancel ( ) #NEWLINE# self . _latency_call = None #NEWLINE# #UNINDENT# deferred = deferred . _shutdown #NEWLINE# self . _shutdown = None #NEWLINE# deferred . callback ( None )