Skip to content

Asyncio

Using asyncio.

For python 3.8 > use asyncio REPL. python -m asyncio

from config.spring import ConfigClient


config_client = ConfigClient(app_name='myapp')

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

await start(config_client)