/// <summary> /// Returns true/false if query returns any result /// </summary> public Task <bool> ExistsAsync() { var tcs = new TaskCompletionSource <bool>(); _liteDatabaseAsync.Enqueue(tcs, () => { tcs.SetResult(_wrappedQuery.Exists()); }); return(tcs.Task); }
/// <summary> /// Returns true/false if query returns any result /// </summary> public Task <bool> ExistsAsync() { return(_liteDatabaseAsync.EnqueueAsync( () => _wrappedQuery.Exists())); }