make main blocking
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-21 18:18:20 +02:00
parent 9da308c063
commit 872c84d3f3
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -1,12 +1,14 @@
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
fun main(){
fun main() = runBlocking{
GlobalScope.launch {
val mqtt = MqttSubscriber()
mqtt.connect()
delay(10000L)
mqtt.disconnect()
}
delay(20000L)
}