sregulator_open_valve (sbroker v1.1.1)
Implements a simple valve with maximum capacity.
sregulator_open_value
can be used as the sregulator_valve
in a sregulator
. It will provide a value that is always open up to a maximum capacity. Its argument, spec()
is of the form: #{max => Max :: non_neg_integer() | infinity} % default: infinity
Max
is the maximum number of concurrent tasks the valve will allow to run (defaults to infinity
). The valve remains open up to the maximum and then closes. It ignores any updates.
Link to this section Summary
Link to this section Types
Link to this type
spec/0
Specs
spec() :: #{max => Max :: non_neg_integer() | infinity}.