Solved by ptrblck in post #2 
              
              
                IterableDatasets don’t end automatically, as they don’t use the __len__ method to determine the length of the data and in your particular code snippet you are using a while True loop, which won’t exit. 
Instead you should break, if your stream doesn’t yield new data anymore or use any other conditio…