'Starts the thread.'

def run(self):

    try:
        self.result = self.func(self.text)
        self.ok = True
    except Exception as e:
        self.exception = e
        self.ok = False
    finally:
        self.event.set()
