Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SynchronousChannel.cs
Go to the documentation of this file.
2
4
5internal sealed class SynchronousChannel<T>
6{
7 private Queue<T> _queue;
8
9 internal int Count => _queue.Count;
10
12 {
13 }
14
15 internal void Init()
16 {
17 _queue = new Queue<T>();
18 }
19
20 internal void Enqueue(T item)
21 {
22 _queue.Enqueue(item);
23 }
24
25 internal T Dequeue()
26 {
27 return _queue.Dequeue();
28 }
29
30 internal void SetDone()
31 {
32 }
33
34 internal void CopyTo(T[] array, int arrayIndex)
35 {
36 _queue.CopyTo(array, arrayIndex);
37 }
38}
void CopyTo(T[] array, int arrayIndex)