Open avsokolov opened 4 years ago
Please, Please add the ability to abort requests.
It can be implemented with AbortController. Something like
const controller = new AbortController(); const promise = getSdk(client, controller.signal).myQuery({...}); setTimeout(() => consroller.abort(), 1000); promise.then(response => ...).catch(error => ...);
Or using rx.js Observables:
const subsription = getSdk(client) .myQuery({...}) .subsribe(response => ...); setTimeout(() => subsription.unsubscribe(), 1000);
Please, Please add the ability to abort requests.
Description
It can be implemented with AbortController. Something like
Or using rx.js Observables: