move widthSync type to top
Vladimir Bauer
9 years ago
| 40 | 40 | termWidth int |
| 41 | 41 | bar *Bar |
| 42 | 42 | } |
| 43 | ||
| 44 | widthSync struct { | |
| 45 | listen []chan int | |
| 46 | result []chan int | |
| 47 | } | |
| 43 | 48 | ) |
| 44 | 49 | |
| 45 | 50 | const ( |
| 198 | 203 | return |
| 199 | 204 | } |
| 200 | 205 | close(p.operationCh) |
| 201 | } | |
| 202 | ||
| 203 | type widthSync struct { | |
| 204 | listen []chan int | |
| 205 | result []chan int | |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | // server monitors underlying channels and renders any progress bars |