I am using the Couchbase Lite iOS SDK with the language Swift. Many of my database operations run asynchronously (not all) by using the method :
// Background code block
Is it possible to cancel this operation? Or is there another way to run a background operation that is cancellable? Sometimes these database calls can take several seconds due to the mass amount of stored documents, and I need to cancel them under certain circumstances.