Are there any good resources on buffered channels?

I have some questions to which I have not found answers:

    - Can you examine the size of the buffer in the channel, e.g. to see if
    it is empty or full, without modifying the channel?
    - What happens to the buffer if the channel is closed? use case -> I
    have an emitter that emits to a buffered channel. If it finishes and tries
    to close the channel but data remains in the buffer, is it lost?
    - Are buffered channels strictly FIFO?


You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 9 | next ›
Discussion Overview
groupgolang-nuts @
postedNov 17, '14 at 9:04p
activeNov 18, '14 at 11:04p



site design / logo © 2021 Grokbase