# \[Concurrency\] Interoperability with Objective-C

**URL:** <https://forums.swift.org/t/concurrency-interoperability-with-objective-c/41616>\
**Category:** Pitches\
**Tags:** concurrency\
**Created:** [October 30, 2020, 6:18pm UTC](https://forums.swift.org/t/concurrency-interoperability-with-objective-c/41616 "2020-10-30T18:18:30Z")\
**Posts on this page:** 1\
**Showing post:** 45

<div class="post-metadata">

**Author:** ![fbruneau](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fbruneau/32/780_2.png) [@fbruneau](https://forums.swift.org/u/fbruneau)\
**Post date:** [November 11, 2020, 11:26am UTC](https://forums.swift.org/t/concurrency-interoperability-with-objective-c/41616/45 "2020-11-11T11:26:36Z")

</div>

Looking at [[Concurrency] Structured concurrency](https://forums.swift.org/t/concurrency-structured-concurrency/41622), I guess the Objective-C -\> Swift import could work by having the progress being imported as a property of the underlying `Task`.

For instance, if we had the method described before, you could do:

```swift
async let result = try doSoethingThatTakesALongTime()
let progress = $result.progress // access the underlying `Task` and extract the progress from it

```

For the case of the `@objc` method implemented in swift, the progress could be generated by the system and made accessible, for instance using a single on `Task`:

```swift
func doSoethingThatTakesALongTime() throws async -> MyResult
{
   let progress = Task.current.progress // get a progress that the method can update, attach children, ...
}

```

or by passing it as a parameter of the method:

```swift
func doSoethingThatTakesALongTime(progress: Progress) throws async -> MyResult
{
}

```

What do you think?

---

_[View the full topic](https://forums.swift.org/t/concurrency-interoperability-with-objective-c/41616)._
