title: Swift: How to Stop Multiple API Calls
body: <p>My app allows users to search for a specific thing after which I make multiple API calls from different sources to get information on what they searched.</p>
  
  <p>I want to add a Stop button so that a user can stop the search if, for example, they have a bad wifi connection and the search is taking too long. I have my API calls in different methods, so I won't know which one is running when the user clicks the Stop button.</p>
  
  <p>Is anyone familiar with a way to stop all functions or even just the API calls running in the app when the user clicks Stop?</p>