examples/sim/dataflow: update to new APIs

This commit is contained in:
Sebastien Bourdeauducq 2012-11-28 22:44:14 +01:00
parent 39d577d65e
commit 2a3ef28041
1 changed files with 1 additions and 1 deletions

View File

@ -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()