Package io.micronaut.core.util
Class KotlinUtils
- java.lang.Object
-
- io.micronaut.core.util.KotlinUtils
-
@Internal public class KotlinUtils extends java.lang.Object
Internal Utility methods for working with Kotlin
.suspendfunctions- Since:
- 1.3.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectCOROUTINE_SUSPENDEDstatic booleanKOTLIN_COROUTINES_SUPPORTEDConstant indicating whether coroutines are supported.
-
Constructor Summary
Constructors Constructor Description KotlinUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisKotlinCoroutineSuspended(java.lang.Object obj)Kotlinsuspendfunction result check.
-
-
-
Method Detail
-
isKotlinCoroutineSuspended
public static boolean isKotlinCoroutineSuspended(@Nullable java.lang.Object obj)
Kotlinsuspendfunction result check.- Parameters:
obj- object to be checked- Returns:
- True if given object is an indicating that a
suspendfunction suspended.
-
-