Skip to content

async: provide wrapper adapter for sync impls #67

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

Open
jordens opened this issue May 16, 2025 · 0 comments
Open

async: provide wrapper adapter for sync impls #67

jordens opened this issue May 16, 2025 · 0 comments

Comments

@jordens
Copy link

jordens commented May 16, 2025

It would be nice to have a little adapter like this.

use embedded_storage::nor_flash::ReadNorFlash as SyncReadNorFlash;
use embedded_storage_async::nor_flash::ReadNorFlash as AsyncReadNorFlash;

pub struct NorFlash<F>(F);

impl<F: SyncReadNorFlash> AsyncReadNorFlash for NorFlash<F> {
...
}
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

No branches or pull requests

1 participant