Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with progress observing #6

Open
jay-jay-lama opened this issue Apr 2, 2024 · 0 comments
Open

Issues with progress observing #6

jay-jay-lama opened this issue Apr 2, 2024 · 0 comments

Comments

@jay-jay-lama
Copy link

jay-jay-lama commented Apr 2, 2024

Without using publish method we get several problems:

  1. Method onTimerProgressChange will cause infinite calling in completion with time 0.0
  2. Method onTimerActivityChange will call completion only once on start
try? MTimer
            .createNewInstance()
            // .publish(every: time) { _ in } // i don't use it 
            .onTimerProgressChange { print($0) }  // causes a loop 
            .onTimerActivityChange { print($0) } // will be called once on start 
            .start(from: .zero, to: time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant