title: 'async' call in a function that does not support concurrency swift ios Xcode async/await
body: <p>I'm trying to use async/await with Swift 5.5.  I have my async function, but whenever I try to call it, I get this error:</p>
  <blockquote>
  <p>'async' call in a function that does not support concurrency</p>
  </blockquote>
  <p>Here's the code sample:</p>
  <pre class="lang-swift prettyprint-override"><code>class TryThis {
      func getSomethingLater(_ number: Double) async -&gt; String {
          // test - sleep for 3 seconds, then return
          Thread.sleep(forTimeInterval: 3)
          return String(format: &quot;&gt;&gt;&gt;%8.2f&lt;&lt;&lt;&quot;, number)
      }
  }
  
  let tryThis = TryThis()
  
  let result = await tryThis.getSomethingLater(3.141592653589793238462)
  print(&quot;result: \(result)&quot;)
  </code></pre>
  <p>What's the solution for this??</p>