Re: Unified async/sync interface

2018-04-01 Thread Ian Kelly
On Sat, Mar 31, 2018 at 7:44 PM, Demian Brecht wrote: > I might be entirely off my face, but figured I'd ask anyways given I > haven't figured out a clean solution to this problem myself yet: > > I'm trying to write a REST API client that supports both async and > synchronous HTTP transports (init

Unified async/sync interface

2018-03-31 Thread Demian Brecht
I might be entirely off my face, but figured I'd ask anyways given I haven't figured out a clean solution to this problem myself yet: I'm trying to write a REST API client that supports both async and synchronous HTTP transports (initially requests and aiohttp). So far, I've tried a few approaches