Top "Cancellation" questions

Cancellation is paradigm that allows cooperatively canceling a running operation before it finishes.

How to cancel an $http request in AngularJS?

Given a Ajax request in AngularJS $http.get("/backend/").success(callback); what is the most effective way to cancel that …

angularjs promise angular-promise angular-http cancellation
Cancel a vanilla ECMAScript 6 Promise chain

Is there a method for clearing the .thens of a JavaScript Promise instance? I've written a JavaScript test framework on …

javascript promise cancellation es6-promise
Promise - is it possible to force cancel a promise

I use ES6 Promises to manage all of my network data retrieval and there are some situations where I need …

javascript promise cancellation
What is the Correct HTTP Status Code for a Cancelled Request

When a TCP connection gets cancelled by the client while making a HTTP request, I'd like to stop doing any …

http http-status-codes cancellation request-cancelling
How to "sleep" until timeout or cancellation is requested in .NET 4.0

What's the best way to sleep a certain amount of time, but be able to be interrupted by a IsCancellationRequested …

c# .net-4.0 sleep cancellation cancellationtokensource
How to cancel window closing in MVVM WPF application

How can I cancel exiting from particular form after Cancel button (or X at the top right corner, or Esc) …

c# wpf icommand cancellation
Is there a way to short circuit async/await flow?

async function update() { var urls = await getCdnUrls(); var metadata = await fetchMetaData(urls); var content = await fetchContent(metadata); await render(content); …

javascript promise async-await cancellation ecmascript-next
Active Noise Cancellation through default iPhone headphone

We want to create an App that will implement the Active Noise Cancellation using the default iPhone headphone. That is, …

ios noise cancellation
Sidekiq stop one single, running job

So I need to stop a running Job in Sidekiq (3.1.2) programmatically, not a scheduled one. I did read the API …

jobs sidekiq cancellation
Can jQuery deferreds be cancelled?

I have a situation where I want to cancel a deferred. The deferred is associated with an ajax call. Why …

javascript jquery ajax jquery-deferred cancellation