/// <summary> /// Execute query and return results as an Array /// </summary> public Task <T[]> ToArrayAsync() { var tcs = new TaskCompletionSource <T[]>(); _liteDatabaseAsync.Enqueue(tcs, () => { tcs.SetResult(_wrappedQuery.ToArray()); }); return(tcs.Task); }
/// <summary> /// Execute query and return results as an Array /// </summary> public Task <T[]> ToArrayAsync() { return(_liteDatabaseAsync.EnqueueAsync( () => _wrappedQuery.ToArray())); }