Berildocs GitHub

Memory cards

A channel is a rendezvous with a buffer policy

confidence: mediumupdated: 2026-11-25status: activeconcurrencycspchannels

Claim#

An unbuffered channel blocks until both sides meet. A closed channel signals completion; a send on it panics.

Test#

Send on an unbuffered channel with no reader. Close it with a pending sender.

Proof#

A pipeline that drains and exits cleanly.

Failure modes#

A goroutine leak hides a missing reader. A close from the receiver side races with senders.