LM334s have a current that is set by an external resistor. That amount of current will flow through the LM334 and any series load/components as long as the power supply have a slightly higher voltage than the load needs.
Video below demonstrates how to use the LM334 on a breadboard.
Affiliate link ads. My favorite electronics book. It goes into detail about current sources, including the LM334.
As an Amazon Associate I earn from qualifying purchases.