RunLimit

class RunLimit(max: Int) : Condition

A condition that is met until the number of executions reaches max.

Constructors

Link copied to clipboard
constructor(max: Int)

Functions

Link copied to clipboard
open infix fun and(other: Condition): Condition

Returns a condition that is the logical AND of this condition and the other condition.

Link copied to clipboard
open override fun canRun(): Boolean

Increments the execution count and checks if it's within the limit.

Link copied to clipboard
open fun not(): Condition

Returns a condition that is the logical negation of this condition.

Link copied to clipboard
open infix fun or(other: Condition): Condition

Returns a condition that is the logical OR of this condition and the other condition.

Link copied to clipboard
open infix fun xor(other: Condition): Condition

Returns a condition that is the logical XOR of this condition and the other condition.