Comment Comment by justinsaccount I feel like I'm too dumb to understand any of this. And I've been writing python for 12 years.Just give me greenlets or whatever and let me run synchronous code concurrently. async def proxy(dest_host, dest_port, main_task, source_sock, addr): await main_task.cancel() dest_sock = await curio.open_connection(dest_host, dest_port) async with dest_sock: await copy_all(source_sock, dest_sock) Are you kidding me? Simplified that is async def func(): await f() dest_sock = await f() async with dest_sock: await f() Every other token is async or await. No thank you. parent justinsaccount 10 years ago
Just give me greenlets or whatever and let me run synchronous code concurrently.
Are you kidding me? Simplified that is Every other token is async or await. No thank you.