-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Labels
FrozenDueToAgeLanguageChangeSuggested changes to the Go languageSuggested changes to the Go languageProposalProposal-FinalCommentPeriodv2An incompatible library changeAn incompatible library change
Milestone
Description
Proposal Details
The channel length can variable.
c := make(chan int , <MaxLen>
[,<MinLen>
] [,<TimeDuration>
])
first:
cap(c) = <MinLen>
if full:
cap(c) = cap(c) * 2 // Max <MaxLen>
if len(c) < cap(c) /4 && timeout <TimeDuration>
{
cap(c) = cap(c) / 2 // Min <MinLen>
}
ivila, zephyrtronium, alesr, theadell, psnilesh and 7 more
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeLanguageChangeSuggested changes to the Go languageSuggested changes to the Go languageProposalProposal-FinalCommentPeriodv2An incompatible library changeAn incompatible library change