title: Retrieving data from python's coroutine object
body: <p>I am trying to learn async, and now I am trying to get whois information for a batch of domains. I found this lib <a href="https://pypi.org/project/aiowhois/" rel="noreferrer">aiowhois</a>, but there are only a few strokes of information, not enough for such newbie as I am. </p>
  
  <p>This code works without errors, but I don't know how to print data from parsed <code>whois</code> variable, which is coroutine object.</p>
  
  <pre><code>resolv = aiowhois.Whois(timeout=10)
  
  async def coro(url, sem):
      parsed_whois = await resolv.query(url)
  
  async def main():
      tasks = []
      sem = asyncio.Semaphore(4)
  
      for url in domains:
          task = asyncio.Task(coro(url, sem))
          tasks.append(task)
      await asyncio.gather(*tasks)
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())
  </code></pre>