コード例 #1
0
ファイル: test_tornado.py プロジェクト: abhinav/reversible
 def action():
     yield successful_action()
     yield reversible.lift(
         make_future(exc=MyException('future failed'))
     )
コード例 #2
0
ファイル: test_tornado.py プロジェクト: abhinav/reversible
    def action():
        value = yield reversible.lift(make_future(42))
        assert value == 42

        yield failing_action()
コード例 #3
0
ファイル: test_tornado.py プロジェクト: abhinav/reversible
    def action():
        yield successful_action()
        value = yield reversible.lift(make_future(42))

        raise reversible.Return(value)