https://kotlinlang.org logo
#coroutines
Title
# coroutines
a

Alexjok

12/01/2019, 9:14 AM
Hello, do we have something like coroutines job executor? Or meby someone already write thing like that? Idea is have queue or another structure of coroutine jobs and execute them at concrete time, in other words - coroutines scheduler
o

octylFractal

12/01/2019, 9:17 AM
there's nothing for executing it at a timestamp, but you could approximate it by adding an appropriate
delay
to the start of the coroutine
a

Alexjok

12/01/2019, 9:29 AM
Okay, thx
d

darkmoon_uk

12/06/2019, 4:01 AM
If you're running on the JVM could you use
ScheduledExecutorService
with a regular task to execute
myParentScope.launch { someCoroutineWork }
?
5 Views