As we can do: ```class Lambda: (String) -> Stri...
# coroutines
a
As we can do:
Copy code
class Lambda: (String) -> String {
	override fun invoke(p1: String): String {
		TODO("Not yet implemented")
	}
}
Would it be possible to add the feature to do?
Copy code
class SuspendLambda: suspend (String) -> String {
	override suspend fun invoke(p1: String): String {
		TODO("Not yet implemented")
	}
}
m
Related issue: https://youtrack.jetbrains.com/issue/KT-18707 Take a look at the last comment there 🙂
🥳 1
a
Thanks, I will try that
it's working like a charm! @mateusz.kwiecinski Does using
languageVersion = "1.6"
mean that this feature will be released with kotlin 1.6? Will we have a change to have it in the next 1.5.* versions?
e
It is a Kotlin 1.6 language feature. Only in preview under a flag in 1.5.*