Constructs a custom Rule from the predicate f
.
Constructs a custom Rule from the predicate f
.
The input represents the weighted tags of a set of tasks.
The function f
should return true if those tasks are allowed to execute concurrently and false if they are not.
If there is only one task represented by the map, it must be allowed to execute.
Ensure that a task with the given tag always executes in isolation.
Returns a Rule that limits the maximum number of concurrent executings tasks tagged with tag
to max
.
Returns a Rule that limits the maximum number of concurrently executing tasks to max
, regardless of tags.
Returns a Rule that limits the maximum number of concurrently executing tasks without a tag to max
.
Converts a sequence of rules into a function that identifies whether a set of tasks are allowed to execute concurrently based on their merged tags.