Beispiel #1
0
 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()
Beispiel #2
0
 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()
Beispiel #3
0
 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()
Beispiel #4
0
 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()
Beispiel #5
0
 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()
Beispiel #6
0
 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()
Beispiel #7
0
 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()
Beispiel #8
0
 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()
Beispiel #9
0
 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()
Beispiel #10
0
 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()
Beispiel #11
0
 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()
Beispiel #12
0
 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()
Beispiel #13
0
 def run(self, observer, cancel, setSink):
   sink = self.Sink(self, observer, cancel)
   setSink(sink)
   return sink.run()