Async publish int variable.
(name string, val int64)
| 98 | |
| 99 | // Async publish int variable. |
| 100 | func statsSet(name string, val int64) { |
| 101 | if globals.statsUpdate != nil { |
| 102 | select { |
| 103 | case globals.statsUpdate <- &varUpdate{name, val, false}: |
| 104 | default: |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | // Async publish an increment (decrement) to int variable. |
| 110 | func statsInc(name string, val int) { |
no outgoing calls
no test coverage detected
searching dependent graphs…