Compare commits
No commits in common. "0a85fc232d652b51fa54426eeff2f7927369879b" and "4821f32e8b5c8452c23bb05818bf1b3aeb96a57a" have entirely different histories.
0a85fc232d
...
4821f32e8b
|
@ -64,11 +64,8 @@ def main(turn):
|
||||||
def a(turn, two):
|
def a(turn, two):
|
||||||
print('A got assertion:', two)
|
print('A got assertion:', two)
|
||||||
turn.send(b.embeddedValue, Three())
|
turn.send(b.embeddedValue, Three())
|
||||||
def on_two_retracted(turn):
|
return lambda turn: print('Assertion', two, 'from B went')
|
||||||
print('Assertion', two, 'from B went')
|
turn.publish(b.embeddedValue, One(Embedded(turn.ref(a))))
|
||||||
turn.retract(one_handle)
|
|
||||||
return on_two_retracted
|
|
||||||
one_handle = turn.publish(b.embeddedValue, One(Embedded(turn.ref(a))))
|
|
||||||
return lambda turn: print('B\'s Boot record went')
|
return lambda turn: print('B\'s Boot record went')
|
||||||
else:
|
else:
|
||||||
# We are "B".
|
# We are "B".
|
||||||
|
|
|
@ -65,8 +65,6 @@ class During(Handler):
|
||||||
def facet(turn):
|
def facet(turn):
|
||||||
if self.inert_ok:
|
if self.inert_ok:
|
||||||
turn.prevent_inert_check()
|
turn.prevent_inert_check()
|
||||||
maybe_stop_action = handler(turn, *args)
|
handler(turn, *args)
|
||||||
if maybe_stop_action is not None:
|
|
||||||
turn.on_stop(maybe_stop_action)
|
|
||||||
return lambda turn: turn.stop(facet)
|
return lambda turn: turn.stop(facet)
|
||||||
return facet_handler
|
return facet_handler
|
||||||
|
|
Loading…
Reference in New Issue