def run(self, observer, cancel, setSink): if self.scheduler.isLongRunning: sink = self.LongrunningSink(self, observer, cancel) setSink(sink) return sink.run() else: sink = self.Sink(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): if isinstance(self.right, Observable): sink = self.Sink(self, observer, cancel) setSink(sink) return sink.run() else: sink = self.IterableSink(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): if self.maxConcurrency > 0: sink = self.ConcurrentSink(self, observer, cancel) setSink(sink) return sink.run() else: sink = self.SerialSink(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): if self.period == None: sink = self.Sink(self, observer, cancel) setSink(sink) return sink.run() else: sink = self.PeriodSink(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): if self.isAbsolute and self.timeSelector != None: sink = self.AlphaSink(self, observer, cancel) setSink(sink) return sink.run() elif not self.isAbsolute and self.timeSelector != None: sink = self.DeltaSink(self, observer, cancel) setSink(sink) return sink.run() else: sink = self.Sink(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): if self.scheduler == None: sink = self.SinkWithCount(self, observer, cancel) setSink(sink) return sink.run() elif self.count > 0: sink = self.SinkWithCountAndTimeSpan(self, observer, cancel) setSink(sink) return sink.run() else: if self.timeSpan == self.timeShift: sink = self.SinkWithTimeSpan(self, observer, cancel) setSink(sink) return sink.run() else: sink = self.SinkWithTimerAndTimeSpan(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): # if self.withIterableResult: # sink = self.IterableSink(self, observer, cancel) # setSink(sink) # return sink.run() # else: sink = self.Sink(self, observer, cancel) setSink(sink) return sink.run()
def run(self, observer, cancel, setSink): sink = self.Sink(self, observer, cancel) setSink(sink) return sink.run()