Blacker.MangaScraper.Common.Utils.FifoSemaphore.FifoSemaphore C# (CSharp) Method

FifoSemaphore() public method

Constructor, creates a FifoSemaphore
public FifoSemaphore ( int tokens ) : System.Collections.Generic
tokens int The number of tokens the semaphore will start with
return System.Collections.Generic
        public FifoSemaphore(int tokens)
        {
            _tokens = tokens;
            _waitQueue = new Queue<Waiter>();
        }