Use asyncio in gateway.