Skip to content

async: provide wrapper adapter for sync impls #67

@jordens

Description

@jordens

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> {
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions