parallels.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:pyactor 作者: pedrotgn 项目源码 文件源码
def invoke(self, func, rpc_id, args, kwargs):
        # put the process in the host list pthreads
        self.host.pthreads[getcurrent()] = self.__actor.url
        try:
            result = func(*args, **kwargs)
        except Exception, e:
            result = e
        self.__actor.receive_from_ask(result, rpc_id)
        # remove the process from pthreads
        del self.host.pthreads[getcurrent()]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号