Hi all, do coroutines support the concept of sched...
# announcements
m
Hi all, do coroutines support the concept of scheduling a task to be run periodically?
d
Because "sleeping" coroutines do not consume threads, you can simply do the following:
Copy code
launch {
   while (true) {
      launchTask()
      delay(<period>)
   }
}
👍 1
m
I see, thanks!