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

Task is getting deallocated. #47

Open
kidsid-Ixigo opened this issue Jun 4, 2019 · 2 comments
Open

Task is getting deallocated. #47

kidsid-Ixigo opened this issue Jun 4, 2019 · 2 comments

Comments

@kidsid-Ixigo
Copy link

I am using the task as shown below and used as a property to singleton class.

            schedulerTask = Plan.every(0.5).do(queue: .global()) {
doSomething()
            }

Which is resulting in this crash.
Screenshot 2019-06-04 at 10 47 46 AM

@luoxiu
Copy link
Owner

luoxiu commented Jun 4, 2019

Hi @kidsid-Ixigo , thank you for your report.

I can't reproduce this with the code above, can you give me a demo if you don't mind?
By the way, you are using 2.x, right?

@kidsid-Ixigo
Copy link
Author

kidsid-Ixigo commented Jun 12, 2019

Yes, I am using 2.0.2. Also, the crash is not reproducible every time. I just came across these in fabric.

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

2 participants