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

conn: deprecate Halt() #29

Open
maruel opened this issue Sep 18, 2023 · 0 comments
Open

conn: deprecate Halt() #29

maruel opened this issue Sep 18, 2023 · 0 comments

Comments

@maruel
Copy link
Member

maruel commented Sep 18, 2023

Ported from google/periph#377.

Move the blocking operation context from the driver to the individual function call.

See https://docs.google.com/document/d/1vQdZdoOMaIan7dKwcAzqHbfM_LCnnSMUQvqypRkjohM for more information.

As such, Halt() will not be needed anymore.

This is a big deal, but the rationale is that it will tremendously simplify the device drivers. Most people get this wrong, and it had been a point of friction for contributors and obscure for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant