Exemplo n.º 1
0
 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))))
Exemplo n.º 2
0
 def merge_sorted_entries(self):
     from disco.future import merge
     return merge(*(fd for fd, size, url in self.connected_inputs))
Exemplo n.º 3
0
 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))))
Exemplo n.º 4
0
 def merge_sorted_entries(self):
     from disco.future import merge
     return merge(*(fd for fd, size, url in self.connected_inputs))