Liking cljdoc? Tell your friends :D

clara.tools.loop-detector


->standard-out-warningclj

(->standard-out-warning)
source

on-limit-fn-lookupclj

(on-limit-fn-lookup fn-or-keyword)
source

throw-exception-on-max-cyclesclj

(throw-exception-on-max-cycles)
source

with-loop-detectionclj

(with-loop-detection session max-cycles on-limit-fn)

Detect suspected infinite loops in the session.

Max-cycles is the maximum number of transitions permitted between different activation groups (salience levels) plus the number of times all rules are evaluated and their facts inserted, thus leading to another cycle of rules activations in the same activation group.

on-limit-fn is a 0-arg function that is invoked exactly once when this limit is exceeded. It can either be a user-provided function or a keyword that indicates a built-in function to use. Currently supported keywords are:

:throw-exception - This throws an exception when the limit is reached. If tracing is enabled, the exception will include the trace.

:standard-out-warning - This prints a warning to standard out.

Detect suspected infinite loops in the session.

Max-cycles is the maximum
number of transitions permitted between different activation groups (salience levels)
plus the number of times all rules are evaluated and their facts inserted, thus leading
to another cycle of rules activations in the same activation group. 

on-limit-fn is a 0-arg function that is invoked exactly once when this limit is exceeded.  It can either be
a user-provided function or a keyword that indicates a built-in function to use.  Currently supported keywords are:

:throw-exception - This throws an exception when the limit is reached.  If tracing is enabled, the exception will include
the trace.

:standard-out-warning - This prints a warning to standard out.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close