title: Start async task in class?
body: <p>I have the following code:</p>
  
  <pre><code>import asyncio
  
  class Test:
  
      async def hello_world(self):
              while True:
                  print("Hello World!")
                  await asyncio.sleep(1)
  
  test = Test()
  
  loop = asyncio.get_event_loop()
  # Blocking call which returns when the hello_world() coroutine is done
  loop.run_until_complete(test.hello_world())
  loop.close()
  </code></pre>
  
  <p>Is there a way to have the hello_world function starting to run from within the class (when an object of the class is created) without doing it from the outside?</p>