Exemple #1
0
def divisible_pipeline_dest(number):
    Pipeline.send("final", number * 7)
Exemple #2
0
def nondivisible_pipeline_destination(number):
    Pipeline.send("final", number * 3)
Exemple #3
0
def first_pipeline_destination(number):
    if number % 3 == 0:
        Pipeline.send("divisible", number)
    else:
        Pipeline.send("nondivisible", number)