Python 3.6 – Asynchronous Comprehensions
When is this useful?  There&#x27;s no real multiprocessing concurrency in Python.  So using this on a computational example such as the one given:<p><pre><code>    result = [i async for i in aiter() if i % 2]
</code></pre>
won&#x27;t speed anything up or put multiple CPUs to work on it.<p>Python&#x27;s new &quot;async&quot; features are useful mostly for servers running many network connections simultaneously.  Too many for one thread per connection.  
That use case used to be handled by &quot;Twisted Python&quot;, but now there&#x27;s language support. That&#x27;s useful. But a list comprehension doesn&#x27;t make sense for that use case.  The PEP lacks any useful example.<p>The motivation seems to be to make async comprehensions have the same capabilities as regular comprehensions, even though that&#x27;s not particularly useful.