The American Civil War developed several this kind of weapons, ranging from so-identified as “volley” guns that sprayed quite a few rifle bullets abruptly like a shotgun, to multishot, semi-automatic weapons just like the Agar machine gun, which was nicknamed the “coffee grinder” for the way it fed its ammunition. https://machguns.com/product/american-180-tuned-by-val-cooper-excellent-w-extras-b01694/