From 2a3ef28041d43582ebc1737a83337e4b2f694758 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 28 Nov 2012 22:44:14 +0100 Subject: [PATCH] examples/sim/dataflow: update to new APIs --- examples/sim/dataflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sim/dataflow.py b/examples/sim/dataflow.py index 42863f920..66021ceb6 100644 --- a/examples/sim/dataflow.py +++ b/examples/sim/dataflow.py @@ -23,7 +23,7 @@ def main(): g.add_connection(source, sink) comp = CompositeActor(g) def end_simulation(s): - s.interrupt = source.actor.done + s.interrupt = source.actor.token_exchanger.done fragment = comp.get_fragment() + Fragment(sim=[end_simulation]) sim = Simulator(fragment, Runner()) sim.run()