#NEWLINE# def set_timeout( self , function , seconds ) : #NEWLINE# #INDENT# def fn_timeout( ) : #NEWLINE# #INDENT# time . sleep ( seconds ) #NEWLINE# function ( ) #NEWLINE# return False #NEWLINE# #UNINDENT# timeout = AsyncWorker ( fn_timeout ) #NEWLINE# timeout . start ( ) #NEWLINE# return True