1# test async def 2 3def dec(f): 4 print('decorator') 5 return f 6 7# test definition with a decorator 8@dec 9async def foo(): 10 print('foo') 11 12coro = foo() 13try: 14 coro.send(None) 15except StopIteration: 16 print('StopIteration') 17