Esempio n. 1
0
    def output(self):
        source = yield self.source
        async_pipeline = partial(self.async_pipe, **self.kwargs)

        if self.mapify:
            args = (async_pipeline, source, self.connections)
            mapped = yield ait.async_map(*args)
            output = multiplex(mapped)
        else:
            output = yield async_pipeline(source)

        return_value(output)
Esempio n. 2
0
    def output(self):
        source = yield self.source
        async_pipeline = partial(self.async_pipe, **self.kwargs)

        if self.mapify:
            args = (async_pipeline, source, self.connections)
            mapped = yield ait.async_map(*args)
            output = multiplex(mapped)
        else:
            output = yield async_pipeline(source)

        return_value(output)
Esempio n. 3
0
 def async_fetch(self):
     """Fetch all source urls"""
     args = (async_get_pipe, self.zargs, self.connections)
     mapped = yield ait.async_map(*args)
     return_value(multiplex(mapped))
Esempio n. 4
0
 def async_fetch(self):
     """Fetch all source urls"""
     args = (async_get_pipe, self.zargs, self.connections)
     mapped = yield ait.async_map(*args)
     return_value(multiplex(mapped))