Yucked/Victoria

DefaultQueue modification

Aaalexer opened this issue · 1 comments

I will be very happy if author add's a new method, to DefaultQueue, which add's an LavaTrack on first place in Queue. I know that DefaultQueue works on LinkedList and it will be easy(i think).

Commit 9a9648f addresses that feature request.

public class MyQueue < T >: DefaultQueue < T > where T: LavaTrack {
  public void EnqueueFirst(T item) {
    if (item == null) {
      throw new ArgumentNullException(nameof(item));
    }

    List.AddFirst(item);
  }
}