24 Aug
2020
24 Aug
'20
11:20 p.m.
Per PEP 515:
It is a SyntaxError to have a non-empty return statement in an asynchronous generator.
Synchronus generators can return values that include it in the StopIteration exception. Why would a return value in an asynchronous generator not do the same in the StopAsyncIteration?