alberthier / corefoundationasyncio Goto Github PK
View Code? Open in Web Editor NEWCoreFoundation based asyncio event loop
License: MIT License
CoreFoundation based asyncio event loop
License: MIT License
Hi!
First let me say a huge thank you for sharing corefoundationasyncio: I had been looking for a way to use asyncio in PyObjC-based Cocoa apps for a while and this is gold. It's working really well for me.
I have an issue with using concurrent.futures.ProcessPoolExecutor
, that I use with loop.run_in_executor()
. It's mostly working just fine, but in some situations that I haven't quite pinned down yet (but seem repeatable), a sub-process will fail like this: concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.
Now, I read your note about the selector implementation, and how it's not compatible with a GUI app. I know concurrent.futures.ProcessPoolExecutor
uses the selector
module, so I was wondering (without understanding much about the subject in general, I should add) if that may be hinting at the root of my problem. Should I perhaps avoid concurrent.futures.ProcessPoolExecutor
and solve my multi-processing needs some other ways, perhaps with the subprocess
module?
Thanks for any clues, and thanks again for bringing asyncio to Cocoa!
trying to install corefoundationasyncio
on python3.11 with pip22.3 triggers the following warning:
DEPRECATION: corefoundationasyncio is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
the warning points to the following discussion: pypa/pip#8559
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.