Skip to content

Conversation

@lwintermelon
Copy link

@lwintermelon lwintermelon commented Nov 14, 2025

The solution is very simple and less intrusive.

Rule 1: Don't close all dataCh, let GC handle.
Rule 2: Make sure when ctx.Done() is triggered, all senders and receivers will finish. So the GC is happy to release the channel.

To figure out all ownership probems of send on closed channel of the project is impossible, it requires a clear design when write the first line code.

will fix #38

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.

cocurrent bugs

1 participant