Can we build jars with a main class having `suspen...
# coroutines
a
Can we build jars with a main class having
suspend fun main
, or do we have to convert it to
fun main
and add
runBlocking
?
g
yes. suspend fun main will work as entry point with jar suspend fun main generates standard main in the same class
a
Sounds good. Verified that it works. I was having a separate problem: https://stackoverflow.com/a/56242000/4407321