Beispiel #1
0
 def action():
     yield successful_action()
     yield reversible.lift(
         make_future(exc=MyException('future failed'))
     )
Beispiel #2
0
    def action():
        value = yield reversible.lift(make_future(42))
        assert value == 42

        yield failing_action()
Beispiel #3
0
    def action():
        yield successful_action()
        value = yield reversible.lift(make_future(42))

        raise reversible.Return(value)