Acquire tries to acquire a free slot for a flow, if the value of flows is already above the maximum it returns ErrTooManyActiveFlows.
(flowType string)
| 17 | // Acquire tries to acquire a free slot for a flow, if the value of flows is already above |
| 18 | // the maximum it returns ErrTooManyActiveFlows. |
| 19 | Acquire(flowType string) error |
| 20 | // Release releases a slot for a flow. |
| 21 | Release() |
| 22 | // SetLimit allows to hot swap the limit value of the limiter. |
no outgoing calls