title: Asyncio and infinite loop
body: <pre><code>@asyncio.coroutine
      def listener():
          while True:
              message = yield from websocket.recieve_message()
              if message:
                  yield from handle(message)
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(listener())
  </code></pre>
  
  <p>Let's say i'm using websockets with asyncio. That means I recieve messages from <code>websockets</code>. And when I recieve a message, I want to handle the message but I'm loosing all the async thing with my code. Because the <code>yield from handle(message)</code> is definetly blocking... How could I find a way to make it non-blocking ? Like, handle multiple messages in the same time. Not having to wait the message to be handled before I can handle another message.</p>
  
  <p>Thanks.</p>