Receives a value from the channel, blocking until one is available. Returns the default value (0) if the channel is closed and empty.
the received value or 0 if closed and empty.