Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 758719

Summary: sys-apps/portage: [TRACKER] use default asyncio event loop implementation in threads and child processes
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal Keywords: Tracker
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=737698
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 761538, 591760, 758740, 758755, 764905    
Bug Blocks:    

Description Zac Medico gentoo-dev 2020-12-06 07:08:57 UTC
Currently portage uses its internal EventLoop implementation in threads and child processes. It would be better if the default asyncio event loop implementation could be used instead, in order to support new features such as PEP 525 asynchronous generators. For forks, hopefully https://bugs.python.org/issue22087 can suppressed  by instantiating a new event loop in the subprocess, which is supported since https://bugs.python.org/issue29703 was fixed.