Are there any ways to schedule an operation with s...
# kotlin-native
r
Are there any ways to schedule an operation with some fire rate (timer)? I guess there is not option to do that in common module. Should I implement it via expect/actual (for native and jvm in my case)? The timer should work on a different thread, can i use Worker to do that? If answer is yes, how can i pass a lambda to the worker's execute method? Maybe there are good examples how to implement it?
f
r
No, it's actually not. It's available in jvm only
f
Oh, sorry, I misunderstood the labels in the docs
u
But you can probably use
delay
from coroutines