Implementation method for Whenever's whenever syntax.
Implementation method for Whenever's whenever syntax.
the boolean condition that determines whether whenever will evaluate the
fun function (condition is true) or throws DiscardedEvaluationException (condition is false)
the function to evaluate if the specified condition is true
Supertrait for
WheneverAssertingtypeclasses, which are used to implement and determine the result type of Whenever'swhenevermethod.Currently, an Whenever expression will have result type
Assertion, if the function passed has result typeAssertion, else it will have result typeUnit.