We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trio.Process
trio changed it's subprocess API as per the large discussion in python-trio/trio#1104.
trio
Summary:
Process.aclose()
Process.aclose was always just a convenience wrapper around other existing public APIs, and that hasn't changed. as per comment: process = await nursery.start(run_process, ...) python-trio/trio#1568 (comment)
run_process()
process = await nursery.start(run_process, ...)
deliver_cancel()
home/goodboy/repos/tractor/tractor/_spawn.py:191: TrioDeprecationWarning: using trio.Process as an async context manager is deprecated since Trio 0.20.0; use run_process or nursery.start(run_process, ...) instead (https://github.com/python-trio/trio/issues/1104) async with proc: # calls ``trio.Process.aclose()`` /home/goodboy/.virtualenvs/xonsh310/lib/python3.10/site-packages/trio/_abc.py:261: TrioDeprecationWarning: trio.Process.aclose is deprecated since Trio 0.20.0; use run_process or nursery.start(run_process, ...) instead (https://github.com/python-trio/trio/issues/1104) await self.aclose()
Mostly comprehensive list of related trio issues & PRs:
The text was updated successfully, but these errors were encountered:
trio.Process.aclose()
No branches or pull requests
trio
changed it's subprocess API as per the large discussion inpython-trio/trio#1104.
Summary:
Process.aclose()
behaviour due to it being "surprising",prone to bugs and,
run_process()
API to allow for calling via aprocess = await nursery.start(run_process, ...)
style and a newdeliver_cancel()
callback api from:process = await nursery.start(run_process, ...) python-trio/trio#1568
implementation by leveraging the now existing shielded-nursery-spawns-killer-task style
which is more or less what we implemented before this APi landed:
process = await nursery.start(run_process, ...) python-trio/trio#1568 (review)
kill? I'll be copying that in from the old
Process.aclose()
inthe interim.
Mostly comprehensive list of related
trio
issues & PRs:The text was updated successfully, but these errors were encountered: