processTasks executes a single task from the queue
()
| 1949 | |
| 1950 | // processTasks executes a single task from the queue |
| 1951 | func (lp *Loadpoint) processTasks() { |
| 1952 | // test guard |
| 1953 | if lp.tasks != nil { |
| 1954 | if task, ok := lp.tasks.Dequeue(); ok { |
| 1955 | task() |
| 1956 | } |
| 1957 | } |
| 1958 | } |
| 1959 | |
| 1960 | // startWakeUpTimer starts wakeUpTimer |
| 1961 | func (lp *Loadpoint) startWakeUpTimer() { |