Closed stephencelis closed 5 years ago
Hey Stephen, Thanks :)
Could you run ./generate.rb
please?
Ah I don't have the repo checked out :) Editing on my phone. Also just added Timer.publish
.
Ok, don't worry about it :) I'll merge and add it on my end.
I don't have the latest beta but is Timer.publish actually interval, or timer? Does it start emitting immediately, or only after the first timespan ?
I had a friend try the following code and it emits nothing:
Timer.publish(every: 0.1, on: .main, in: .default)
.print()
.sink { _ in }
Might be related to backpressure but I don't know much about it in Combine, yet. Have you tried Timer.publish ?
I believe
Publishers.Empty
handles these cases.