≈ the.bay.news

Creating a typed-throws AsyncSequence

Swift Forums
Creating a typed-throws AsyncSequence
Here's a seemingly simple question I can't find an answer to: short of making an ad-hoc implementation of AsyncSequence and AsyncIteratorProtocol, how do I get an async sequence that supports typed throws? AsyncThrowingStream can only be created where Failure == any Error from what I can find, which kind of defeats the purpose of making it generic in the first place.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.