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 Erwin Mayer
Recipients Erwin Mayer, gvanrossum, vstinner, yselivanov
Date 2016-03-09.19:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457550983.04.0.405041129862.issue26520@psf.upfronthosting.co.za>
In-reply-to
Content
I simply need to run a coroutine synchronously (which may or may not have a loop parameter), so I tried to do it by the book. With .NET it is easy to call .Wait() on a Task (but .NET by default uses a threadpool, not a single-threaded event loop).

I am intrigued: how is it possible to achieve this at all without creating an event loop, and what kind of things are you referring to that could go wrong with my implementation?

I am a bit scared as well as if this canonical way to use loops fails for no good reason, it may imply other things in asyncio could go wrong. Unless proven otherwise (I do not rule out an implementation mistake), there could be a bug here, hence this post (StackOverflow is generally of little help when it comes to bugs).
History
Date User Action Args
2016-03-09 19:16:23Erwin Mayersetrecipients: + Erwin Mayer, gvanrossum, vstinner, yselivanov
2016-03-09 19:16:23Erwin Mayersetmessageid: <1457550983.04.0.405041129862.issue26520@psf.upfronthosting.co.za>
2016-03-09 19:16:23Erwin Mayerlinkissue26520 messages
2016-03-09 19:16:22Erwin Mayercreate