kuroko/test/testYieldFromEventLoop.krk.expect

16 lines
485 B
Plaintext

Starting run loop.
Popping from scheduled list.
Calling <class 'generator'>
foo(): hi
bar(): hello, there, I'm an async function
Awaiting result 1: 42
Returned with Awaiter(): awaitable returns an iterator
Popping from scheduled list.
Calling <class 'generator'>
Awaiting result 2: (all done)
bar(): hello, there, I'm an async function
Awaiting result 3: 42
foo(): bi
Exception: <class '__main__.StopIteration'> done
Done with run loop.