Schedule icon indicating copy to clipboard operation
Schedule copied to clipboard

Task is getting deallocated.

Open kidsid-Ixigo opened this issue 6 years ago • 2 comments

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

kidsid-Ixigo avatar Jun 04 '19 05:06 kidsid-Ixigo

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?

luoxiu avatar Jun 04 '19 07:06 luoxiu

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

kidsid-Ixigo avatar Jun 12 '19 09:06 kidsid-Ixigo