-
Notifications
You must be signed in to change notification settings - Fork 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
Simplify scan() #569
Comments
No, let's not do that please - multiple reasons :-)
It is also needed for TNEP communication, which is not a just-read-one-value and your are done mode.
Not sure about 3. with the above answers. With all of that said, today Another option would be doing similar (and similar to what we wanted to do for GeolocationSensor which got abandoned for now) - ie adding the convenience of a |
This crossed my mind, too. Anyway it's a convenience and someone can implement it with scan(), so I am not sure it's worth doing. Maybe we could include an example on how to implement a simple read() that resolves with the data? |
That example exists in my latest PR |
After filtering is gone and we have separate readers each with internal slots, IMHO we could simplify scans:
onerror
andonreading
eventsThe text was updated successfully, but these errors were encountered: