[SR-14945] AsyncThrowingStream.init(unfolding:) can throw errors other than Failure type #57287
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Swift 5.5 (Xcode beta 3)
Additional Detail from JIRA
md5: 45c0f634928a812ff1b80bd07f4730e0
Issue Description:
AsyncThrowingStream.init(unfolding🙂 takes a throwing closure but is not constrained in its Failure type, which means it's possible to create an AsyncThrowingStream that throws an error other than its Failure type. It should probably be constrained where Failure == Error, like its other initializer.
The text was updated successfully, but these errors were encountered: