Join Slack
Powered by
Can we build jars with a main class having `suspen...
# coroutines
a
Allan Wang
09/11/2020, 8:12 AM
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
gildor
09/11/2020, 8:14 AM
yes. suspend fun main will work as entry point with jar suspend fun main generates standard main in the same class
a
Allan Wang
09/11/2020, 8:27 AM
Sounds good. Verified that it works. I was having a separate problem:
https://stackoverflow.com/a/56242000/4407321
2
Views
Open in Slack
Previous
Next