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

Read() to buffer for specific time and then return #47

Open
cmdpwnd opened this issue Aug 7, 2019 · 0 comments
Open

Read() to buffer for specific time and then return #47

cmdpwnd opened this issue Aug 7, 2019 · 0 comments

Comments

@cmdpwnd
Copy link

cmdpwnd commented Aug 7, 2019

Currently Read() blocks until buf is full - or I don't understand the function correctly (honestly, let's hope so). I'm looking for a way to Read() to buf for say time.Second before Read() does return so that I can parse the data (if any) on hand rather than waiting for an infinite amount of time for a buffer to fill that might not.

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