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
.suspend
functions- Since:
- 1.3.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Object
COROUTINE_SUSPENDED
static boolean
KOTLIN_COROUTINES_SUPPORTED
Constant 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 boolean
isKotlinCoroutineSuspended(java.lang.Object obj)
Kotlinsuspend
function result check.
-
-
-
Method Detail
-
isKotlinCoroutineSuspended
public static boolean isKotlinCoroutineSuspended(@Nullable java.lang.Object obj)
Kotlinsuspend
function result check.- Parameters:
obj
- object to be checked- Returns:
- True if given object is an indicating that a
suspend
function suspended.
-
-