Some portable inverter generators have three run settings on the control dial: off, fuel off spark on, and fuel on spark on (if you don't count choke as the fourth setting, if the choke is a separately controlled valve).
However, some generators have only two run settings: off, fuel on spark on.
Since generators generally use carburetors apart from some rare expensive fuel-injected models like Honda EU32i, they suffer from the problem that the fuel in the carburetor might go stale. Therefore, the benefit of a "fuel off spark on" position is massive, it allows running the carburetor dry from fuel without running the gasoline tank dry from fuel. If the fuel tank is sealed (by turning off the fuel vent), gasoline there could stay useable for months, or even a year with a fuel stabilizer.
However, I happen to have a generator that doesn't have a "fuel off spark on" position. It does however have a separately controlled fuel tank vent.
I was thinking that if I turn off the fuel tank vent, maybe the negative pressure that builds in the fuel tank would prevent the carburetor from getting more fuel from the fuel tank. It might allow running the carburetor dry from fuel, without running the fuel tank dry from fuel.
So if I turn off the fuel tank vent when the generator is running, would that effectively work as the missing "fuel off spark on" position of the control dial? Then when the generator turns off from missing fuel in the carburetor, the control dial could be turned off to prevent fuel from getting to the carburetor ever again until the control dial is turned on.