Answer the question
In order to leave comments, you need to log in
How to stop a function called from another file?
def start_parser(message):
if db.get_temp_country(message.from_user.id) == 'pool':
pool = PoolUi()
thread_counter = Thread(target=pool.generate_link).start()
thread_counter = Thread(target=loading_advs(message, params[2])).start()
Answer the question
In order to leave comments, you need to log in
Pass an Event object to the parser function and set it to complete the execution of the function, and the function must check its state during operation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question