otakusenpai
01/20/2019, 9:59 AMoctylFractal
01/20/2019, 10:17 AMtimer
is coroutine-aware so I don't think you can use that & properly suspendotakusenpai
01/20/2019, 10:26 AMoctylFractal
01/20/2019, 11:13 AMfor (delay in channel) {
functionToRun()
}
otakusenpai
01/20/2019, 11:19 AMval one = async {
for(delay in whoUpdater) {
logger.log(toLog, toFile,"$botname: Turning on channel sync")
updateChanList()
logger.log(toLog, toFile,"$botname: Done syncing")
}
}
one.await()
Then it justs listens for that message instead of any other message. How do i stop it from happening?Dico
01/20/2019, 2:40 PMasync
I think you should use launch
And don't await
, what are you awaiting