If you’d want an additional delay first. ```IO.sl...
# arrow
s
If you’d want an additional delay first.
Copy code
IO.sleep(5.seconds).flatMap { 
  IO.effect { println("${Instant.now()}: test") }
    .repeat(IO.concurrent(), Schedule.spaced(IO.monad(), 5.seconds)) 
}
k
But if I understand it correctly, it will wait for 5 sec, and then will still emit 2 prints in a row, right?
What I’m looking for is like this:
Copy code
00:00 print
00:05 print
00:10 print
s
Oh okay, I miss-understood the question.
Hey @Kirill Bubochkin you’re absolutely correct! I actually fixed this for the next version on my current branch, I’ll be raising and merging that soon 🙂
Copy code
2020-06-01T14:29:18.679Z: test
2020-06-01T14:29:23.751Z: test
2020-06-01T14:29:28.752Z: test
This is what I am seeing locally for the same code.
k
ah, that’s cool, thanks 🙂
s
Anytime 👍