Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make execute method on WASM client for compatibility with async_impl #989

Merged

Conversation

Jasonoro
Copy link
Contributor

@Jasonoro Jasonoro commented Aug 6, 2020

The async_impl of reqwest has a execute impl on Client which is used to execute a request and return a Result Future. When building a async crate to wasm this method is missing, requiring forking and rewriting the crate.

I'm not aware of any reason why this method should be missing, but if there was a good reason for leaving the execute method please say so. The same if you require any changes!

The async_impl of reqwest has a `execute` impl on Client which is used
to execute a request and return a Result Future. When converting a crate
from async to wasm this method is missing, requiring forking and
rewriting the crate. By introducing this method less errors will be
introduced when trying to compile to wasm
Copy link
Owner

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks!

@seanmonstar seanmonstar merged commit 77d7e45 into seanmonstar:master Aug 6, 2020
Nutomic pushed a commit to Nutomic/reqwest that referenced this pull request Nov 7, 2024
…eanmonstar#989)

The async_impl of reqwest has a `execute` impl on Client which is used
to execute a request and return a Result Future. When converting a crate
from async to wasm this method is missing, requiring forking and
rewriting the crate. By introducing this method less errors will be
introduced when trying to compile to wasm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants