Couchbase Lite - Asynchronous methods for documents?


#1

(Couchbase Lite 2.1, Xamarin Forms, .Net Standard, C#)

This may be explained in documentation (please, point me to it if available), but how are operations against the database handled as far as asynchronous operations? (await-able) For example, we find no await-able form of

_database?.Purge(document)

How do we fully know that cbl has completed the operation before moving on to another document or further Upserting of documents that may have been amidst the purge operations and may not have fully completed Purge operation.

Excuse the naive question if its brutally obvious in documentation.


#3

All operations are synchronous.

If you want async forms, you can build a wrapper that runs them on a background thread; but we don’t provide that in the SDK.