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

As a tornado based application I want my calls to Braintree to be non-blocking #110

Open
balakp opened this issue Dec 27, 2018 · 5 comments
Labels

Comments

@balakp
Copy link

balakp commented Dec 27, 2018

General information

  • SDK/Library version: latest
  • Language, language version: Python 2.7.11

Issue description

As an application using tornado web server and python 2.7, the Braintree apis block the main execution Thread. Is there any plan to support coroutines?

@crookedneighbor
Copy link
Contributor

We should probably add support for asyncio since it's part of Python 3, but I'm not sure it makes sense to add methods that are specific to Tornado. Is there not an easy way to wrap the methods in the Tornado framework?

@jkottapa
Copy link

Is there a plan to add support for asyncio? We'd be really interested in it, we also use Tornado for our server side and have to resort to using Tornado.concurrent.run_on_executor.

@jackellenberger
Copy link
Contributor

Hey @Jayanth1991 we've got no new news at this point about adding async support to our Python SDK, but it is on our roadmap to investigate. As always, PRs are welcome!

@ghost
Copy link

ghost commented Aug 16, 2019

Upvote for asyncio. I'm using aiohttp at the moment and need to put the braintree calls out on threads.

@hollabaq86
Copy link

for internal tracking, ticket 323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants