()
| 66 | return complete |
| 67 | } |
| 68 | func (w WatcherMultiplex) String() string { |
| 69 | complete := 0 |
| 70 | for _, completion := range w.CompletionList { |
| 71 | if completion.Complete() { |
| 72 | complete += 1 |
| 73 | } |
| 74 | } |
| 75 | return fmt.Sprintf("%v complete out of %v", complete, len(w.CompletionList)) |
| 76 | } |
| 77 | func (w WatcherMultiplex) Wait() error { |
| 78 | for _, completion := range w.CompletionList { |
| 79 | if err := completion.Wait(); err != nil { |