Closed safareli closed 6 years ago
let's wait for answer on https://github.com/slamdata/purescript-aff/issues/148 before we merge
We can merge this so killFiber is not blowing up, and then once https://github.com/ethereum/web3.js/pull/1618 is merged we can implement proper canceler which aborts running ajax request
Note it would be harder for metamask to support cancellation see https://github.com/MetaMask/metamask-extension/issues/4225, so we should have in mind that sendAsync might return undefined.
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