// isChanClosed tests if a channel is closed without waiting the channel.
isChanClosed tests if a channel is closed without waiting the channel.
// isChanClosed tests if a channel is closed without waiting the channel .
func isChanClosed(ch <-chan struct{}) bool {
	select {
	case <-ch:
		return true
	default:
	}
	return false
}
func isChanClosed ( ch <- chan struct { } ) bool { select { case <- ch : return true default : } return false }
isChanClosed tests if a channel is closed without waiting the channel.
isChanClosed tests if a channel is closed without waiting the channel .