#NEWLINE# def spawn_after( seconds , * args , **kwargs ) : #NEWLINE# #INDENT# raise_error = kwargs . pop ( 'raise_error' , False ) #NEWLINE# def _launch( func , * args , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return func ( * args , ** kwargs ) #NEWLINE# #UNINDENT# except TaskExit : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# if raise_error : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# LOG . error ( 'hub: uncaught exception: %s' , traceback . format_exc ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return eventlet . spawn_after ( seconds , _launch , * seconds , ** kwargs )