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

Adding asyncio async backend.exchange methods / behavior #211

Open
lpascal-ledger opened this issue Nov 6, 2024 · 0 comments
Open

Adding asyncio async backend.exchange methods / behavior #211

lpascal-ledger opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lpascal-ledger
Copy link
Contributor

Current backend.exchange* methods are all, in a programmatic sense, synchronous.

This could be bothersome when dealing with APDU exchanges, which could arbitrarily need user interactions (navigation in a Ragger/Speculos sense). Currently the way to deal with that is to manage navigation into the APDU exchange loop, which leads to clustered, non-generic, dirty code, or craft a higher-level threading mechanism to allow concurrent execution (on 'thread/coroutine/whatever' dealing with the APDU exchanges, another managing the navigation).

Adding async exchange methods returning futures could ease this process in a cleaner manner.

@lpascal-ledger lpascal-ledger added the enhancement New feature or request label Nov 6, 2024
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

1 participant