Limits of delay()?

Hi there

I am not aware of any limitation in the kotlinx.coroutines library about that, you might fill the dispatcher queues a lot which could be a performance hazard but beside that I can’t see anything bad. you might want to have a coroutine taking care of the dispatching of the delayed tasks in order to free the dispatcher queue tho.

Also keep in mind that suspended coroutines contain their execution context, preventing any kind of GC so you should make sure to reduce the quantity of data the coroutine is bound to or you will have memory leaks.

Hope this helps