The fuel passes through a Venturi tube in the nozzle, which changes the speed and pressure of the fluid passing through. This creates a vacuum that pulls on the valve and shuts it off when there's no more air passing through.