On Friday, June 10, 2016 at 3:35:42 PM UTC-7, Jens Alfke wrote: > > > > On Jun 10, 2016, at 3:07 PM, Phil Mitchell <[email protected] > <javascript:>> wrote: > > > > 1. The docs seem to indicate that dispatchQueue is no longer available > as a property on CBLManager (1.2). I'm on 1.1 and dispatchQueue seems to > solve my problem quite nicely, so I'm hoping this is a documentation bug > (?). > http://developer.couchbase.com/documentation/mobile/current/develop/references/couchbase-lite/couchbase-lite/manager/manager/index.html > > > Those docs are cross-platform and only describe the standard API. They > won’t include platform-specific functionality like access to dispatch > queues. To see what’s available, look at the headers. CBLManager.h includes > a dispatchQueue property. >
Good to know! > > > 2. When I set [CBLManager sharedInstance].dispatchQueue equal to a > serial dispatch queue that I create, I seem to be able to then call CBL > from any queue I want (including syncronously on main queue, and > asynchronously on global queues as well as the serial queue itself). Is > this correct or will this bite me later? > > By “call” do you mean direct method calls, or are you using dispatch_sync > and dispatch_async? > > Direct method calls from other queues/threads will not work correctly. > Dispatching blocks to the CBLManager’s queue will work; that’s exactly what > it’s for. > Yes, I meant dispatch_X() ... Awesome, that's great news. Thanks, Jens! > > —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/e5eda362-8d42-46a1-9e45-f06767af5df7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
