# Swift Concurrency: Feedback Wanted!

**URL:** <https://forums.swift.org/t/swift-concurrency-feedback-wanted/49336>\
**Category:** Discussion\
**Created:** [June 7, 2021, 7:31pm UTC](https://forums.swift.org/t/swift-concurrency-feedback-wanted/49336 "2021-06-07T19:31:38Z")\
**Posts on this page:** 1\
**Showing post:** 94

<div class="post-metadata">

**Author:** ![BasemEmara](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/basememara/32/21528_2.png) [@BasemEmara](https://forums.swift.org/u/BasemEmara)\
**Post date:** [June 17, 2021, 9:18pm UTC](https://forums.swift.org/t/swift-concurrency-feedback-wanted/49336/94 "2021-06-17T21:18:19Z")

</div>

Concurrency works really great, amazing work thank you!!

My feedback so far is regarding error handling. Still feels a little archaic and hoping strongly-typed errors be revisited in light of Concurrency. This was discussed in [various threads](https://forums.swift.org/t/typed-throw-functions) over the years, but a `throw` to a general purpose `Error` is really difficult for the callers to handle errors without knowing the implementation details and feels like a gap. This could finally rid the need of the well served `Result` type once and for all.

Going from this:

```swift
do {
    try await performWork()
} catch let error as MyError {
    switch error { // Exhaust all error cases
        case .invalidUser: ...
        case .expiredToken: ...
        case .etc: ...
    }
} catch {
    // Will never reach here but need to satisfy compiler
}

```

To this:

```swift
do {
    try await performWork()
} catch .invalidUser {
    ...
} catch .expiredToken {
    ...
} catch .etc {
    ...
} 

```

Also another completely different feedback I have is I noticed crashes while mixing `GCD`. I understand this is not the intended use case, but I think this will be unavoidable when `async` tasks performs work using dependencies and SDKs where we have no control or knowledge of the underlying implementation. I'm wondering if changing the `GCD` under the hood to switch between legacy and `async/await` implementation based on the caller would prevent these crashes?

---

_[View the full topic](https://forums.swift.org/t/swift-concurrency-feedback-wanted/49336)._
