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
It would be nice if to_process.run_sync, to_thread.run_sync, and from_thread.run_sync could accept kwargs. Is there a reason for not supporting it, or was it just not implemented until now?
The text was updated successfully, but these errors were encountered:
See discussion in #403, python-trio/trio#470
Sorry, something went wrong.
Thanks @uSpike! So do you recommend using a lambda?
run_sync(lambda: my_func('foo', kwarg='bar'))
Yep that's the best way in my opinion, otherwise functools.partial.
functools.partial
Thanks!
No branches or pull requests
It would be nice if to_process.run_sync, to_thread.run_sync, and from_thread.run_sync could accept kwargs.
Is there a reason for not supporting it, or was it just not implemented until now?
The text was updated successfully, but these errors were encountered: