Go · Function
close
close shuts down a bidirectional or send-only channel. Receivers can finish queued values, then receive the element type's zero value without blocking; the two-result form reports false.
Last updated
Syntax
func close(c chan<- Type)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
panicrecovermake