drop deprecated WithContext option
Vladimir Bauer
7 years ago
| 0 | 0 | package mpb |
| 1 | 1 | |
| 2 | 2 | import ( |
| 3 | "context" | |
| 4 | 3 | "io" |
| 5 | 4 | "io/ioutil" |
| 6 | 5 | "sync" |
| 47 | 46 | } |
| 48 | 47 | } |
| 49 | 48 | |
| 50 | // WithContext deprecated and has no effect, please use NewWithContext instead. | |
| 51 | func WithContext(ctx context.Context) ContainerOption { | |
| 52 | return func(s *pState) { | |
| 53 | } | |
| 54 | } | |
| 55 | ||
| 56 | 49 | // WithShutdownNotifier provided chanel will be closed, after all bars |
| 57 | 50 | // have been rendered. |
| 58 | 51 | func WithShutdownNotifier(ch chan struct{}) ContainerOption { |