File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -326,10 +326,10 @@ The only way to yield (or effectively cede control) from a coroutine is to
326326That might sound odd to you. Frankly, it was to me too. You might be thinking:
327327
328328 1. What about a ``yield `` directly within the coroutine? The coroutine becomes
329- a generator-coroutine (or async generator) , a different beast entirely.
329+ an async generator, a different beast entirely.
330330
331331 2. What about a ``yield from `` within the coroutine to a function that yields
332- (that is, plain generator)?
332+ (that is, a plain generator)?
333333 ``SyntaxError: yield from not allowed in a coroutine. ``
334334 This was intentionally designed for the sake of simplicity -- mandating only
335335 one way of using coroutines. Originally ``yield `` was actually barred as well,
You can’t perform that action at this time.
0 commit comments