The American Civil War created several these kinds of weapons, ranging from so-termed “volley” guns that sprayed quite a few rifle bullets all at once just like a shotgun, to multishot, semi-automatic weapons similar to the Agar machine gun, which was nicknamed the “espresso grinder” for the way it fed https://machguns.com/product/colt-ar15a2-converted-to-full-auto-sp326814/