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

Adding panic logic and test case #8171

Merged
merged 7 commits into from
Feb 6, 2018

Conversation

kavyasrinet
Copy link

@kavyasrinet kavyasrinet commented Feb 5, 2018

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

@kavyasrinet
Copy link
Author

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.

@abhinavarora
Copy link
Contributor

abhinavarora commented Feb 6, 2018

@kavyasrinet This is a redundant PR. There is already a PR for this which I had submitted for review few days back #8132

@kavyasrinet
Copy link
Author

Ah I see. Yeah this PR implements similar features along with a test case, we can merge either of them.

@abhinavarora
Copy link
Contributor

@kavyasrinet Okay, I will close #8132.

Copy link
Contributor

@abhinavarora abhinavarora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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

Successfully merging this pull request may close these issues.

2 participants