Table of Contents

Method TryDequeue

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Attempts to remove and return the object at the beginning of the LavalinkQueue<T>.

public bool TryDequeue(out T value)

Parameters

value T

When this method returns, contains the object removed from the beginning of the LavalinkQueue<T>, or the default value of T if the queue is empty.

Returns

bool

true if an object was successfully removed; otherwise, false.