-
Notifications
You must be signed in to change notification settings - Fork 403
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
Contract of RingBuffer.read() #95
Comments
The doc states:
In the case you describe no messages are processed by the handler, so 0 is returned. |
"Is it expected that RingBuffer.read(Handler, 1) will always return a message if it has been written to the RingBuffer?" |
Also note that the padding message is not the issue, but the symptom, e.g.: |
@mjpt777 Thanks for the update that is now very clear. |
Is it expected that RingBuffer.read(Handler, 1) will always return a message if it has been written to the RingBuffer?
It appears as though RingBuffer.read(Handler, 1) will return 0 messages when a PADDING_MSG_TYPE has been written.
If this is expected I would propose adding some Javadoc clarifying the contract?
The text was updated successfully, but these errors were encountered: