progress icon indicating copy to clipboard operation
progress copied to clipboard

Close is not channel if err on the reader

Open segator opened this issue 5 years ago • 0 comments

https://github.com/machinebox/progress/blob/master/progress.go#L117-L142

you should do something like if counter.Err()!=nil { return } this will force the clannel be closed with your defered close(ch)

segator avatar Jun 01 '20 06:06 segator