Skip to content

Asyncio

Using asyncio

import asyncio
from config.spring import ConfigClient


loop = asyncio.get_event_loop()
config_client = ConfigClient(app_name='myapp')

async def start(config_client):
    config_client.get_config()
    print(config_client.config)

loop.run_until_complete(start(config_client))