def __iter__(self): from disco.future import merge iters = [self.input_iter(input) for input in self.input] heads = [Wait] * len(iters) return merge(*(self.couple(iters, heads, n) for n in xrange(len(iters))))
def merge_sorted_entries(self): from disco.future import merge return merge(*(fd for fd, size, url in self.connected_inputs))