ConcurrentQueue(T) Class eepresents a thread-safe first in-first out (FIFO) collection. : ConcurrentQueue « Data Structure « VB.Net






ConcurrentQueue(T) Class eepresents a thread-safe first in-first out (FIFO) collection.

 

Imports System.Collections.Concurrent
Imports System.Threading
Imports System.Threading.Tasks

Class TestQueue
    Shared Sub Main()
        Dim cq As New ConcurrentQueue(Of Integer)()
        For i As Integer = 0 To 9999
            cq.Enqueue(i)
        Next
    End Sub

End Class

   
  








Related examples in the same category