Use asyncio synchronization instead of anyio
#922
+148
−157
asyncio synchronization instead of anyio
#922