The following code outputs as follows:
1 sec delay, print \"1\", 1 sec delay, print \"2\", 1 sec delay, print \"1\", 1 sec delay, print \"2\"
With the aysncio library you can use aysncio.gather()
loop.run_until_complete(asyncio.gather( first(), second() ))
This can come in handy if you are also sending HTTP requests in parallel:
loop.run_until_complete(asyncio.gather( request1(), request2() ))