Closed
Description
The currently accepted proposal for the constraints package (#45458) adds a constraint Chan
. In #47319 (comment) @Merovius points out that does not support read-only and write-only channel types. This proposal is to add new constraints
type ReadOnlyChan[Elem any] interface { ~<-chan Elem }
type WriteOnlyChan[Elem any] interface { ~chan <- Elem }