Loop runs submitted task serially in a dedicated Goroutine.
| 23 | |
| 24 | // Loop runs submitted task serially in a dedicated Goroutine. |
| 25 | type Loop struct { |
| 26 | tasks chan task |
| 27 | |
| 28 | // State for closing |
| 29 | done chan struct{} |
| 30 | taskLoopDone chan struct{} |
| 31 | err atomicx.Error |
| 32 | } |
| 33 | |
| 34 | // New creates and starts a new task loop. |
| 35 | func New(onClose func()) *Loop { |
nothing calls this directly
no outgoing calls
no test coverage detected