Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Convert the sync client into a wrapper of the async#31

Draft
acroca wants to merge 1 commit intodapr:maindapr/durabletask-python:mainfrom
acroca:async-wrapperacroca/dapr-durabletask-python:async-wrapperCopy head branch name to clipboard
Draft

Convert the sync client into a wrapper of the async#31
acroca wants to merge 1 commit intodapr:maindapr/durabletask-python:mainfrom
acroca:async-wrapperacroca/dapr-durabletask-python:async-wrapperCopy head branch name to clipboard

Conversation

@acroca
Copy link
Member

@acroca acroca commented Nov 6, 2025

This PR introduces anyio to reduce duplication between the clients. The sync client is now just a wrapper, using the async client behind the scenes.

I kept all the functions explicitly defined in the sync client so the code editors can show the tips to users. We could generate those functions dynamically and create a .pyi file, but I think it's manageable and simpler to duplicate them.

Opening as draft to get feedback on this approach.

Signed-off-by: Albert Callarisa <albert@diagrid.io>
@filintod
Copy link

filintod commented Nov 6, 2025

nice effort and in general people use asyncio code so better to optimize for that path, and slowly consolidate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.