Can multiple tasks on different threads write from the same Channel without a lock?

Pretty much the title says it all: I want to have multiple producers that all write to the same channel. I will then have one consumer that reads the data from this channel. Do the producers need to acquire a lock before calling put!?

Thanks!

yes (edit: answering to the title)

2 Likes

no (edit: answering to the text)

2 Likes