def METHOD_NAME(self, **kwargs):
    # 主进程执行
    self.threadLock.acquire()
    self.parent.send(kwargs)
    while True:
        res = self.parent.recv()
        if res != '[Finish]':
            yield res
        else:
            break
    self.threadLock.release()