Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76169
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Marko Rauhamaa <marko@pacujo.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: Using asyncio workers in a `concurrent.futures` interface |
| Date | Wed, 13 Aug 2014 08:03:01 +0300 |
| Organization | A noiseless patient Spider |
| Lines | 18 |
| Message-ID | <8738d1dlru.fsf@elektro.pacujo.net> (permalink) |
| References | <d6e2ab63-c9bc-4271-abac-17e32afa4c88@googlegroups.com> <mailman.12901.1407879145.18130.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="30322"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iwl+tgV6T5JWG6mM3Vlvc" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
| Cancel-Lock | sha1:UjQPgQwpsWJxvNhsaJdUM4MpH9Q= sha1:fUuCSQpDMEhOpADLP8MfDAPh7Bo= |
| Xref | csiph.com comp.lang.python:76169 |
Show key headers only | View raw
Ian Kelly <ian.g.kelly@gmail.com>: > On Tue, Aug 12, 2014 at 11:02 AM, cool-RR <ram.rachum@gmail.com> wrote: >> And that's it, no coroutines, no `yield from`. Since, if I understand >> correctly, asyncio requires a mainloop, it would make sense for the >> AsyncIOExecutor to have a thread of its own in which it could run its >> mainloop. > > I think that putting the event loop in a separate thread would be > necessary if the intention is that the executor be invoked from > outside. I'm not aware of this work having been done, but it sounds > perfectly feasible. Multithreading will require normal locking to protect critical sections. Care must be taken to never yield while holding a threading lock. Marko
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Using asyncio workers in a `concurrent.futures` interface cool-RR <ram.rachum@gmail.com> - 2014-08-12 10:02 -0700
Re: Using asyncio workers in a `concurrent.futures` interface Marko Rauhamaa <marko@pacujo.net> - 2014-08-12 21:31 +0300
Re: Using asyncio workers in a `concurrent.futures` interface MRAB <python@mrabarnett.plus.com> - 2014-08-12 19:43 +0100
Re: Using asyncio workers in a `concurrent.futures` interface Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-12 15:31 -0600
Re: Using asyncio workers in a `concurrent.futures` interface Marko Rauhamaa <marko@pacujo.net> - 2014-08-13 08:03 +0300
Re: Using asyncio workers in a `concurrent.futures` interface Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-13 00:03 -0600
csiph-web