如何在twisted deferToThread中使用多个函数?

时间:2016-12-02 13:57:25

标签: python mongodb asynchronous twisted pymongo

根据twisted deferToThread(http://twistedmatrix.com/documents/current/api/twisted.internet.threads.deferToThread.html)的文档,我可以给它一个函数和它的参数。

我想限制我会找到的文件的输出(比如3个文件),所以我也想使用MongoDB驱动程序的限制函数(pymongo)。

0 个答案:

没有答案