Closed mikeshardmind closed 3 years ago
Won't be doing this. It's neat conceptually but it's not any better than handling it the current way and adds a higher level of understanding needed for potential contributors.
Example above also has a bit of a sharp edge in having the generator yield the result which is allowed to be a different type and may need other handling, if it were ever added, the actual result should be fetched from the consumed generator instead.
Consideration on generator use: (or equivalent async generator)
Mostly here for me to not forget about this idea later, might decide it's not being added and close this.