[Twisted-Python] Running CPU bound function concurrently in twisted

Gelin Yan dynamicgl at gmail.com
Sun Jun 23 23:28:11 MDT 2019


Hi

   If your purpose is merely not to block the reactor, you can run your
code in a separate thread by using deferToThread. If you want to benefit
from multi cores, you may consider use https://github.com/twisted/ampoule
or other similar tools.

Regards

gelin yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20190624/ab53201d/attachment-0002.html>


More information about the Twisted-Python mailing list