Beispiel #1
0
        def create():
            def mapper(x):
                return scheduler.create_cold_observable(
                    on_next(x * 10, "Ignore"), on_next(x * 10 + 5, "Aargh!")
                )

            return xs.pipe(_.throttle_with_mapper(mapper))
Beispiel #2
0
        def create():
            def mapper(x):
                return scheduler.create_cold_observable(on_completed(x * 10))

            return xs.pipe(_.throttle_with_mapper(mapper))
Beispiel #3
0
        def create():
            def mapper(x):
                return ys[x]

            return xs.pipe(_.throttle_with_mapper(mapper))