On Apr 4, 2014, at 11:26 AM, Scott Ahten <[email protected]> wrote:
> Is there a safe way to push this work off to a background thread? Yes, CBLManager has a -backgroundTellDatabaseNamed:to: method that will run a block on the background thread that's used for replication. The gotcha with that method is that, since the background thread has its own objects, you must use the CBLDatabase instance that's passed into the block instead of the one you use on the main thread. --Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/34854693-A84F-4232-8A28-A37D60950B41%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
