Hello everyone,
After using asyncio for a while, I'm struggling to find information about
how to support both synchronous and asynchronous use cases for the same
library.
I.e. imagine you have a package for http requests and you want to give the
user the choice to use a synchronous or an asynchro
Hello, Manuel.
The answer to your problem is to refactor the libraries in the "sans I/O"
style.
Take a look here:
http://sans-io.readthedocs.io/
On Thu, 8 Jun 2017 at 19:32 manuel miranda wrote:
> Hello everyone,
>
> After using asyncio for a while, I'm struggling to find information about
>
On Thu, Jun 8, 2017 at 3:32 PM, manuel miranda wrote:
> Hello everyone,
>
> After using asyncio for a while, I'm struggling to find information about
> how to support both synchronous and asynchronous use cases for the same
> library.
>
> I.e. imagine you have a package for http requests and you w
On Fri, Jun 9, 2017 at 12:48 AM Nathaniel Smith wrote:
> On Thu, Jun 8, 2017 at 3:32 PM, manuel miranda
> wrote:
> > Hello everyone,
> >
> > After using asyncio for a while, I'm struggling to find information about
> > how to support both synchronous and asynchronous use cases for the same
> > l