Like a sempahore?

Semaphore limits concurrency, this one automatically groups (batches) input.