Skip to content
New issue

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

Support keyword arguments in callbacks #291

Open
alexdelorenzo opened this issue May 14, 2021 · 1 comment
Open

Support keyword arguments in callbacks #291

alexdelorenzo opened this issue May 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@alexdelorenzo
Copy link

When supplying sync functions and coroutine functions as callbacks, anyio should accept and supply keyword arguments when calling them.

The following functions accept and supply *args to callbacks, but not keyword arguments:

  • anyio.to_thread.run_sync()
  • anyio.to_process.run_sync()
  • anyio.from_thread.run_sync()
@agronholm
Copy link
Owner

The relevant trio discussion is here. I much prefer solving this in concert with trio.

@agronholm agronholm added the enhancement New feature or request label May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants