AsyncThrowingStream's initialiser doesn't allow any other error type except Error
:
If you try other type you will get compilation error:
Initializer 'init(:bufferingPolicy::)' requires the types 'CancellationError' and 'Error' be equivalent
It's because all initializers have restriction: where Failure == Error
So Failure isn't customisable and should be removed for this reason