Example #1
0
 def test_replay_time_multiple_connections(self):
     xs = reactivex.never()
     ys = xs.pipe(ops.replay(window=100))
     connection1 = ys.connect()
     connection2 = ys.connect()
     assert connection1 == connection2
     connection1.dispose()
     connection2.dispose()
     connection3 = ys.connect()
     assert connection1 != connection3
Example #2
0
    def test_replay_count_multiple_connections(self):

        xs = reactivex.never()
        ys = xs.pipe(ops.replay(None, 3))
        connection1 = ys.connect()
        connection2 = ys.connect()
        assert connection1 == connection2
        connection1.dispose()
        connection2.dispose()
        connection3 = ys.connect()
        assert connection1 != connection3
Example #3
0
 def action0(scheduler, state):
     ys[0] = xs.pipe(ops.replay(window=100, scheduler=scheduler))
Example #4
0
 def action0(scheduler, state):
     ys[0] = xs.pipe(ops.replay(buffer_size=3, scheduler=scheduler))