• Kirill Smelkov's avatar
    golang: Add support for nil channel · 2aad64bb
    Kirill Smelkov authored
    Send/recv on the nil channel block forever; close panics.
    If a nil channel is used in select - corresponding case is never selected.
    
    Setting channel to nil is a usual idiom in Go to disable processing some
    cases in select. Nil channel is also used as "done" for e.g.
    context.Background() - for contexts that can be never canceled.
    2aad64bb
README.rst 6.18 KB