Module sregulator_open_valve

Implements a simple valve with maximum capacity.

Behaviours: sregulator_valve.

Description

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.

Data Types

spec()

spec() = #{max => Max::non_neg_integer() | infinity}


Generated by EDoc