i guess i could do something like: ``` flow { ...
# coroutines
p
i guess i could do something like:
Copy code
flow {
    while (true) { emit(x); delay(y); 
}
l
Yes, where x comes from your API call just before. Also, please, post everything in one message so replying in threads is more straightforward and the channel is not flooded too much (there's over 20K people in this Slack and over 2K in this channel)
p
well now everyone has lots of unread notifications 😄
i will try to keep it to a thread
i need a fixed timer, though. emit/delay doesn't emulate a fixed timer, right?
l
What do you mean by "fixed"?
p
if you want the timer to run every X amount of time, rather than have X amount of time between runs
l
You can use substraction for that, and write your inline suspending function to implement it only once.
p
that seems to work, thanks