On Wednesday, 19 April 2023 at 16:07:18 UTC, Jacob Shtokolov wrote:
>On Tuesday, 18 April 2023 at 14:26:00 UTC, Sebastiaan Koppe wrote:
>I think it will work beautifully until the day you want to do it asynchronously.
Ranges can be async, in this case, you just need to return the Result type (pending|error|success) and provide hints to something that will be pulling from this range.
Maybe. But not without major hurdles. And you forgot (async) cancellation, which is a big deal, ask Rust.