# Simple example involving structured concurrency

**URL:** <https://forums.swift.org/t/simple-example-involving-structured-concurrency/43424>\
**Category:** Using Swift\
**Created:** [December 29, 2020, 5:32pm UTC](https://forums.swift.org/t/simple-example-involving-structured-concurrency/43424 "2020-12-29T17:32:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![johannesweiss](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/johannesweiss/32/38183_2.png) [@johannesweiss](https://forums.swift.org/u/johannesweiss)\
**Post date:** [December 29, 2020, 6:09pm UTC](https://forums.swift.org/t/simple-example-involving-structured-concurrency/43424/2 "2020-12-29T18:09:06Z")

</div>

If you want to use the concurrency support through SwiftPM, you'll need to use

```
swift run -Xswiftc -Xfrontend -Xswiftc -enable-experimental-concurrency

```

The meaning of `-Xswiftc` is "SwiftPM, please hand the following argument through to the Swift compiler without interpreting it". And similarly, `-Xfrontend` asks the Swift compiler to hand the next argument into the compiler's frontend.

Oh, and to actually run the binaries produces with the experimental concurrency support, you'll need a

```
export DYLD_LIBRARY_PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/lib/swift/macosx/

```

(adapt the path to your Swift toolchain as necessary).

---

_[View the full topic](https://forums.swift.org/t/simple-example-involving-structured-concurrency/43424)._
