Skip to content

Conversation

@yycptt
Copy link
Contributor

@yycptt yycptt commented May 14, 2019

Fix #710

}
// All blocked sends are going to panic
for _, callback := range c.blockedSends {
callback.fn()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't quite understand why we want to consider the value for blocked sends consumed when closing a channel.

@yycptt yycptt merged commit 25c98a4 into cadence-workflow:master May 14, 2019
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.

Send/Receive/Close pattern on non-buffered channel results in panic

2 participants