Skip to content

Is I²C read blocking or non-blocking? #4

@fivdi

Description

@fivdi

The IO Class Pattern states that all IO is non-blocking, consistent with ECMAScript API behavior on the web platform.

On the other hand, the I²C class read method, which is documented here, returns the data read which would indicate that it's blocking. The read method will have to access the target I²C peripheral to read the required data and therefore block.

Or have I misunderstood something?

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