SimpleTask is in an implementation of tasklog.Task which prints out messages verbatim.
| 9 | // SimpleTask is in an implementation of tasklog.Task which prints out messages |
| 10 | // verbatim. |
| 11 | type SimpleTask struct { |
| 12 | // ch is used to transmit task updates. |
| 13 | ch chan *Update |
| 14 | |
| 15 | // wg is used to wait between closing the channel, and acknowledging |
| 16 | // that the close-related operations have been completed by the |
| 17 | // tasklog.Logger. |
| 18 | wg *sync.WaitGroup |
| 19 | } |
| 20 | |
| 21 | // NewSimpleTask returns a new *SimpleTask instance. |
| 22 | func NewSimpleTask() *SimpleTask { |
nothing calls this directly
no outgoing calls
no test coverage detected