Пример #1
0
        public async Task TestBatchBlockBuffer()
        {
            var b = new BatchBlock <int>(1000);

            b.Post(1);
            b.Post(2);
            b.TriggerBatch();
            Assert.AreEqual(b.BatchSize, b.GetBufferCount().Total());
        }