winter / io.jentz.winter / WinterApplication / checkForCyclicDependencies

checkForCyclicDependencies

var checkForCyclicDependencies: Boolean

If this is set to true, Winter will check for cyclic dependencies and throws an error if it encounters one. Without this check you will run in a StackOverflowError when you accidentally declared a cyclic dependency which may be hard to track down.

Cyclic dependency checks are a bit more expensive but usually worth it in debug or test builds.