I’m working in a project with Python and AIOHTTP, so inevitably I was going to hit some threading issues that forced me to learn more about asyncio. I’ve collected in this blogpost some useful links. Please contact me for any other good stuff that you can suggest :)

Extra balls


Fast.ai is a library for neural networks that has a useful helper for triggering processes (via @antor, thanks!):

from fastai.core import parallel

def process_one(item,i):
    return (item**2, i)

result = parallel(process_one, range(100000))