def METHOD_NAME(self, thread, taskName, task):
    assert self.notify.debugCall()
    self._taskStartTime = ClockObject.getGlobalClock().getRealTime()
    thread.run()
    self._taskStartTime = None
    if thread.isFinished():
        thread._destroy()
        self.__taskNames.remove(taskName)
        self.__threads.remove(thread)
        return Task.done
    else:
        return Task.cont