-
Notifications
You must be signed in to change notification settings - Fork 42
Future/Tokio compatible #30
Comments
Not right now. tokio is being reworked, so I would wait for that before attempting to write it. You can also run this library in a thread pool, giving you the same result. If you want to take a shot at it, I'll review and merge it though. |
I would probably able to do it. Do you think there should then be always two methods? One that returns a Future but does not block and one that does block? Or should there only be a Future version and a user would call wait to block? |
I wouldn't change the current API. I would also add the tokio support behind a feature flag, so that you can only enable it when you need it. So it would be a separate async API. |
Hm, hyper works either with or without tokio but not both. Would it be ok if tokio was always used but a synchronous API was still provided? |
No way to avoid it I guess. A lot of people are using the current API, so let's no break it. Just add the async support as a new API. |
I updated the implementation to adjust for changes in tokio/hyper. |
Is there a futures aware and tokio compatible version planned?
The text was updated successfully, but these errors were encountered: