public Task EnqueueAsync(T item, CancellationToken cancellationToken) { lock (queue) queue.Enqueue(item); gate.Open(); return(Task.CompletedTask); }
public static void Open(this AutomaticGate gate) { gate.Open(1); }