Class KotlinUtils

java.lang.Object
io.micronaut.core.util.KotlinUtils

@Internal public class KotlinUtils extends Object

Internal Utility methods for working with Kotlin suspend functions

.
Since:
1.3.0
Author:
Konrad KamiƄski
  • Field Details

    • KOTLIN_COROUTINES_SUPPORTED

      public static final boolean KOTLIN_COROUTINES_SUPPORTED
      Constant indicating whether coroutines are supported.
    • COROUTINE_SUSPENDED

      public static final Object COROUTINE_SUSPENDED
  • Constructor Details

    • KotlinUtils

      public KotlinUtils()
  • Method Details

    • isKotlinCoroutineSuspended

      public static boolean isKotlinCoroutineSuspended(@Nullable @Nullable Object obj)
      Kotlin suspend function result check.
      Parameters:
      obj - object to be checked
      Returns:
      True if given object is an indicating that a suspend function suspended.