-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-braintree-native: make fetch functions non-blocking with `awai…
…t asyncio.sleep(0)` The Braintree SDK's API calls are all synchronous, so they block the event loop, meaning only a subset of streams can make progress at a time. Adding `await asyncio.sleep(0)` to the top of the fetch functions allows other streams to make progress since these functions now yield to the event loop.
- Loading branch information
Showing
1 changed file
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters