Hope this helps:
https://www.swiftbysundell.com/articles/connecting-async-await-with-other-swift-code/
You can use concurrency prior to macOS 12.0 because it is a language feature, but not the macOS 12's frameworks (macOS feature). If you want to mix code of <12.0 and >12.0, you can use the example of that article to build your own function constructor.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: