I was wondering how you would go about creating a thread to do a background task? Say you have a function which takes roughly 5 seconds to complete, how could this be done in the background without slowing down the main process?
def some_function(self):
# do something
self.function_which_takes_5_seconds()
def function_which_takes_5_seconds(self)
# 5 seconds logic