Handle generators as stream source