-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an attempt to provide a sync api, which makes much more sense for expect. The idea is to run the event loop in a separate thread so that we can call `Future::wait()` in the client handle without preventing the event loop from making progress. Note that this currently rely on rust-lang/rust#47760 Fwiw, running our own even loop is not considered good practice, but it the approach reqwest has taken too, so I guess it's not that bad.
- Loading branch information
1 parent
83f79d0
commit d9cca33
Showing
1 changed file
with
67 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters