dabeaz / curio

Good Curio!
Other
4.02k stars 241 forks source link

asyncio bridge improvements #223

Closed Fuyukai closed 7 years ago

Fuyukai commented 7 years ago

This adds some improvements to the asyncio bridge, such as:

The first one was my main use case for one of my projects; it's easier than running the loop manually every time.

dabeaz commented 7 years ago

I'm going to merge this, but some changes will be made to the *args, *kwargs calling convention. Throughout Curio, there has been effort to standardize the calling convention of functions that run other functions (e.g., `spawn(func, args),run_in_thread(func, *args), etc.). Positional arguments are passed to the function itself whereas keyword arguments are used for configuration and options to the operation itself. To pass keyword arguments, you would usepartial()`.