/// <inheritdoc/> public void Insert(DataType obj) { Insertions.Add(DatabaseService.AddItemAsync(obj)); if (Insertions.Count >= _maxAsyncTasks) { var pendingRequests = Insertions.SkipWhile(task => task.IsCompleted); pendingRequests.FirstOrDefault()?.Wait(); Insertions = pendingRequests.ToList(); } }