This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients giampaolo.rodola, gvanrossum, ncoghlan, pitrou, srkunze, vstinner, yselivanov
Date 2015-07-07.12:53:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436273620.59.0.244948431249.issue24571@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-07-07 12:53:40gvanrossumsetrecipients: + gvanrossum, ncoghlan, pitrou, vstinner, giampaolo.rodola, yselivanov, srkunze
2015-07-07 12:53:40gvanrossumsetmessageid: <1436273620.59.0.244948431249.issue24571@psf.upfronthosting.co.za>
2015-07-07 12:53:40gvanrossumlinkissue24571 messages
2015-07-07 12:53:40gvanrossumcreate