def _make_one(self, *args, **kwargs): if 'timeout' in kwargs: self.time_service = helpers.TimeService(self.loop, interval=0.01) self.addCleanup(self.time_service.close) kwargs['timer'] = self.time_service.timeout(kwargs.pop('timeout')) return streams.StreamReader(loop=self.loop, *args, **kwargs)
def function1833(self, *args, **kwargs): if ('timeout' in kwargs): self.attribute1794 = helpers.TimeService(self.attribute1361, interval=0.01) self.addCleanup(self.attribute1794.close) kwargs['timer'] = self.attribute1794.timeout(kwargs.pop('timeout')) return streams.StreamReader(*args, loop=self.attribute1361, None=kwargs)
def time_service(loop): return helpers.TimeService(loop)
def time_service(loop): return helpers.TimeService(loop, interval=0.1)
def function589(arg2374): return helpers.TimeService(arg2374, interval=0.1)