Package 

Class SafeTraceFunctionsKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T safeTrace(Function0<String> label, Function0<T> block) Allows tracing of a block of code without any overhead when isTraceable is false.
      final static <T extends Any> T safeTrace(String label, Function0<T> block) Allows tracing of a block of code
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • safeTrace

         final static <T extends Any> T safeTrace(Function0<String> label, Function0<T> block)

        Allows tracing of a block of code without any overhead when isTraceable is false.

        label a string producing lambda if the label is computed dynamically. If the label isn't dynamic, use the safeTrace which directly takes a string instead.

      • safeTrace

         final static <T extends Any> T safeTrace(String label, Function0<T> block)

        Allows tracing of a block of code