Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
ahoka
15h ago
0 comments
Share
IIRC generators and co-routines are equivalent in a sense that you can implement one with the other.
undefined | Better HN
0 comments
default
newest
oldest
Sharlin
14h ago
Generators are a subset of coroutines that only yield data in one direction. Full coroutines can also receive more input from the caller at every yield point.
j
/
k
navigate · click thread line to collapse