Closed jelmerderonde closed 8 years ago
Can you tell what thread they are running on?
Also, what does it mean to have more than one success block?
Using NSThread.currentThread the app.data.contexts.current
's appear to be on different threads.
in the first succesblock I return a new task. If that is also succesful the next block is called.
If you're on a new thread, it won't have a context stack set up. Some info here: https://github.com/infinitered/cdq/wiki/New-Threading-and-Context-Stack-model
I'm using RedPotion 1.5.0 which includes CDQ 1.0.8 and the latest version of the AWS SDK which includes (a renamed version of) the Bolts framework.
In my Project < CDQManagedObject class the entire CDQ stack seems to vanish after a Bolts succes block. I will include a little bit of code to illustrate:
Output of this is:
"1:"
#<NSManagedObjectContext:0x112c34ac0>
"2:"
nil
Maybe I'm doing something colossally wrong but I can't get it fixed. I would appreciate any help.