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

fix _sendAsync canceler #102

Merged
merged 2 commits into from
May 8, 2018
Merged

fix _sendAsync canceler #102

merged 2 commits into from
May 8, 2018

Conversation

safareli
Copy link
Contributor

@safareli safareli commented May 8, 2018

HttpProvider.prototype.sendAsync returns undefined so we can't cancel it.
https://github.com/ethereum/web3.js/blob/develop/lib/web3/httpprovider.js#L114-L141

HttpProvider.prototype.sendAsync returns undefined so we can't cancel it.
https://github.com/ethereum/web3.js/blob/develop/lib/web3/httpprovider.js#L114-L141
@safareli
Copy link
Contributor Author

safareli commented May 8, 2018

let's wait for answer on purescript-contrib/purescript-aff#148 before we merge

@safareli
Copy link
Contributor Author

safareli commented May 8, 2018

We can merge this so killFiber is not blowing up, and then once web3/web3.js#1618 is merged we can implement proper canceler which aborts running ajax request

@safareli safareli requested a review from martyall May 8, 2018 15:42
@safareli
Copy link
Contributor Author

safareli commented May 8, 2018

Note it would be harder for metamask to support cancellation see MetaMask/metamask-extension#4225, so we should have in mind that sendAsync might return undefined.

@martyall martyall merged commit f9dab66 into master May 8, 2018
@safareli safareli deleted the send-async-canceler branch May 9, 2018 11:21
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