Bug 1.
Based on your original code the async request function is not using any form of a wait or suspension point to signal when the dataTask call completes. You should consider fixing that. If request returns void then continuation.resume(returning: ()) will also work informing the caller of the request function that the suspension point can resume from the current await request call.
Topic:
Programming Languages
SubTopic:
Swift
Tags: