On Thursday, December 12, 2019 at 3:53:07 PM UTC+1, Bryan C. Mills wrote:
>
> This is a bit off-topic now, but coincidentally we will have another talk 
>> (probably by my work colleague) that is related to one of your approaches 
>> from the talk:
>>
>> // Glob finds all items with names matching pattern
>> // and sends them on the returned channel.
>> // It closes the channel when all items have been sent.
>> func Glob(pattern string) <-chan Item { 
>>
>
>> We had a bug where due to panic+recover the channel consumer stopped 
>> reading from the channel prematurely and the producer deadlocked the entire 
>> process. I will argue that for exposed public API, sql-like defer Close / 
>> Next / Scan is safer than raw channels.
>>
>
> It seems that you didn't read/watch the whole talk, or even the whole 
> section of the talk?
> (I made exactly that point on slides 24–36. The asynchronous examples are 
> the pattern to be rethought, not the final result!
>

Yes I'm sorry, I skimmed through the slides quickly. This is the actual 
library: https://github.com/emersion/go-imap 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c9eb5a92-32ab-497e-9814-66251f5baa09%40googlegroups.com.

Reply via email to