A task represents the fact that the program is busy doing something, which is useful for integration tests which only want to proceed when the program is idle.
| 5 | // is idle. |
| 6 | |
| 7 | type Task interface { |
| 8 | Done() |
| 9 | Pause() |
| 10 | Continue() |
| 11 | // not exporting because we don't need to |
| 12 | isBusy() bool |
| 13 | } |
| 14 | |
| 15 | type TaskImpl struct { |
| 16 | id int |
no outgoing calls
no test coverage detected