Message246407
You seem to miss that run_in_executor() does take *args -- so the partial() call is only needed if you need to pass keyword args. Is it really worth having a helper for this one-liner?
def call_async(func, *args):
return asyncio.get_event_loop().run_in_executor(func, *arg)
I'm on the fence myself. I do like the new name better. |
|
Date |
User |
Action |
Args |
2015-07-07 12:53:40 | gvanrossum | set | recipients:
+ gvanrossum, ncoghlan, pitrou, vstinner, giampaolo.rodola, yselivanov, srkunze |
2015-07-07 12:53:40 | gvanrossum | set | messageid: <1436273620.59.0.244948431249.issue24571@psf.upfronthosting.co.za> |
2015-07-07 12:53:40 | gvanrossum | link | issue24571 messages |
2015-07-07 12:53:40 | gvanrossum | create | |
|