Is there an equivalent query.ExecuteAsync() for Couchbase.Lite?

For example I have some code like this:

var query = _database.CreateQuery(queryString); var result = query.Execute();

This will block my UI thread, so I end up wrapping it in a Task.Run

Am I missing something here?

Thanks!

No, this API does not have an asynchronous equivalent.

It would be great if it did, wrapping everything in a Task.Run is pretty messy.

For me at least typical usage is in a .NET Maui app using the private async Task OnAppearing() method in my ViewModels to load data which is where you then have to wrap any Couchbase.Lite calls to get data.

Upvote for this as a feature request if you are taking them :slight_smile: