Now fully supports multiple threads per generator

generator doesn't stop on first null, stops on the "allocated thread
number"-th null