Improve UI speed when adding many books to queue at once.

This commit is contained in:
Michael Bucari-Tovo 2022-06-08 08:39:17 -06:00
parent 0729e4ab09
commit 9c6211e8e0
2 changed files with 63 additions and 6 deletions

View file

@ -226,5 +226,14 @@ namespace LibationWinForms.ProcessQueue
QueuededCountChanged?.Invoke(this, _queued.Count);
}
}
public void Enqueue(IEnumerable<T> item)
{
lock (lockObject)
{
_queued.AddRange(item);
QueuededCountChanged?.Invoke(this, _queued.Count);
}
}
}
}