release returns a previously acquired use to the pool. Callers must invoke this at most once per successful tryAcquire when the advisor call did not complete successfully, so a transient provider failure does not permanently consume quota for the run.
()
| 160 | // call did not complete successfully, so a transient provider failure |
| 161 | // does not permanently consume quota for the run. |
| 162 | func (rt *Runtime) release() { |
| 163 | rt.used.Add(-1) |
| 164 | } |
no test coverage detected