thread safe asyncio