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

Always crashes on deinit() #6

Closed
mshll opened this issue Mar 5, 2018 · 9 comments
Closed

Always crashes on deinit() #6

mshll opened this issue Mar 5, 2018 · 9 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists
Milestone

Comments

@mshll
Copy link

mshll commented Mar 5, 2018

screen shot 2018-03-04 at 9 47 18 pm

see screenshot

malcommac added a commit that referenced this issue Mar 5, 2018
@malcommac malcommac added the bug Something isn't working label Mar 5, 2018
@malcommac malcommac changed the title Always crashes Always crashes on deinit() Mar 5, 2018
@malcommac malcommac added this to the 0.2.1 milestone Mar 5, 2018
@zhaoyunyi
Copy link

Repeat-0.5.1 will carsh too in sometimes

@zhaoyunyi
Copy link

image
how to slove it?

@malcommac
Copy link
Owner

Can you provide an example project with the crash? Thanks

@malcommac malcommac reopened this Apr 17, 2018
@zhaoyunyi
Copy link

Do you have email, i can send it for you .

@malcommac
Copy link
Owner

sure, hello at danielemargutti.com

@zhaoyunyi
Copy link

RepeatCashTest.zip

@fiveze
Copy link
Contributor

fiveze commented Apr 19, 2018

#22

@malcommac
Copy link
Owner

thanks @fiveze , merged, also with updated with tests (0.5.2)

@malcommac malcommac added the duplicate This issue or pull request already exists label Apr 19, 2018
@yuzhouwww
Copy link

Crashing on deinit still exists in 0.5.8 and 0.6.0. Here is all my code:

import UIKit
import Repeat

class ViewController: UIViewController {

  var repeater: Repeater?

  override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view.
    repeater = Repeater.every(.seconds(10), { [weak self] (repeater) in
      self?.test()
    })
    repeater?.pause()
    repeater?.fire()
    repeater = nil
  }

  private func test() {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants