且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

运行多个异步函数并获取每个函数的返回值

更新时间:2022-01-12 02:24:31

您不能直接在进程之间共享对象.您需要使用为传递值而专门设计的类之一,即Queue和Pipe;参见文档.

You can't share objects directly across processes. You need to use one of the classes especially designed for communicating values, Queue and Pipe; see the documentation.