NewSimpleTask returns a new *SimpleTask instance.
()
| 20 | |
| 21 | // NewSimpleTask returns a new *SimpleTask instance. |
| 22 | func NewSimpleTask() *SimpleTask { |
| 23 | return &SimpleTask{ |
| 24 | ch: make(chan *Update), |
| 25 | wg: new(sync.WaitGroup), |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // Log logs a string with no formatting verbs. |
| 30 | func (s *SimpleTask) Log(str string) { |
no outgoing calls