1-what is the condition that make chan break?
deliveries <-chan amqp.Delivery
for d:= range deliveries{
..
}
If there is no more data in chan deliveries about a few minutes,that it will break. Is the code up is same to below?
deliveries <- chan amqp.Delivery
for{
d,ok:=<-deliveries
if !ok{
break
}
//code
}
2-Why does chan not only return data but also status?And what does the "ok" mean?
3-How does the chan realize?"ok" is the status about client,Why can it return the "ok"?