-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Adding panic logic and test case #8171
Adding panic logic and test case #8171
Conversation
As per my discussion with @wangkuiyi , I will push another commit to instead return a boolean since it will be easier to implement that in Python. |
@kavyasrinet This is a redundant PR. There is already a PR for this which I had submitted for review few days back #8132 |
Ah I see. Yeah this PR implements similar features along with a test case, we can merge either of them. |
@kavyasrinet Okay, I will close #8132. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Adding a panic case if we are trying to send on a closed channel.
As of now, this PR throws a
runtime_error
if we try to send on a closed channel.Issue: #8172