One-shot or Repeating Timers, Ch 11, p. 236

This very short explantion needs expansion, especially the use of the “repeat period”.


@fpillet Can you please help with this when you get a chance? Thank you - much appreciated! :]

Sorry, help with what? Do I need to be more explicit?

I think it is pretty much self-explanatory, but I can expand:

Observable.timer(_:period:scheduler:) creates a new observable timer which, upon subscription, waits for the initial delay, emits an integer (starts with 0, increments each time it fires) then if the period parameter is not nil, emits a new value after each period seconds.

Is that clear enough for you?

Hope this helps,

I understand the operator and how it works. I can see I didn’t make myself clear. My complaint was about the use of language in the section titled “one shot or repeating timers”.

Understood. We already wrapped changes for the next update of the book, but definitely taking this input into account for a future update!

Thanks, Florent.

This topic was automatically closed after 166 days. New replies are no longer allowed.