Bug#942132: ITP: python-nest-asyncio -- Patch asyncio to allow nested event loops
On 10/10/19 9:04 PM, Sam Hartman wrote: > The above description should be improved. Thanks for your prompt feedback, Sam - I resorted to keeping the same description present in the project's documentation, not being aware that the 3.4 policy actually discourages it explicitly. I'll revise the description during packaging in the hopes of producing a more accurate summary. Best, -- Diego M. Rodriguez signature.asc Description: OpenPGP digital signature
Bug#942132: ITP: python-nest-asyncio -- Patch asyncio to allow nested event loops
> "Diego" == Diego M Rodriguez writes: Diego> nested. This presents a practical problem: When in an Diego> environment where the event loop is already running it's Diego> impossible to run tasks and wait for the result. The above description should be improved. Because it's fairly easy to run a task and wait for the result: await coroutine_or_task will run a coroutine or task and await the result within any async function. You perhaps mean that it is difficult for non-asynchronous code to run tasks and wait for the result. If so, please say that. --Sam
Bug#942132: ITP: python-nest-asyncio -- Patch asyncio to allow nested event loops
Package: wnpp Severity: wishlist Owner: "Diego M. Rodriguez" * Package name: python-nest-asyncio Version : 1.2.0 Upstream Author : Ewald R. de Wit * URL : https://github.com/erdewit/nest_asyncio * License : BSD-2-clause Programming Lang: Python Description : Patch asyncio to allow nested event loops By design asyncio does not allow its event loop to be nested. This presents a practical problem: When in an environment where the event loop is already running it's impossible to run tasks and wait for the result. This module patches asyncio to allow nested use of asyncio.run and loop.run_until_complete. This package is a dependency for updating the existing qiskit-terra package to its newest version. The intent is to maintain this package under the umbrella of the Debian Python Modules Team. -- Diego M. Rodriguez signature.asc Description: OpenPGP digital signature