belozierov / SwiftCoroutine

Swift coroutines for iOS, macOS and Linux.
https://belozierov.github.io/SwiftCoroutine
MIT License
836 stars 51 forks source link

Is there an equivalent to "onError" for `CoChannel`s? #34

Open funct7 opened 3 years ago

funct7 commented 3 years ago

Looking at the documentation and test codes, it doesn't seem like there is a way to signal the cause of the cancellation of the channel. I think it would be nice to know why the channel was aborted.