Top "Cancellation" questions

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

How cancel the execution of a SwingWorker?

Currently I have two SwingWorker threads doing job on background. If an exception occurs, the method stop to work, but …

java multithreading swing swingworker cancellation
SwingWorker: when exactly is called done method?

Javadoc of the done() method of SwingWorker: Executed on the Event Dispatch Thread after the doInBackground method is finished. I've …

java swing swingworker cancellation
How to stop a DispatchWorkItem in GCD?

I am currently playing around with Grand Central Dispatch and discovered a class called DispatchWorkItem. The documentation seems a little …

swift grand-central-dispatch cancellation dispatchworkitem
Error: The operation was canceled

I'm using this code snippet to do an async query with a cancellation token: var _client = new HttpClient( /* some setthngs */ ); _…

c#-4.0 asynchronous async-await cancellation cancellationtokensource
NsoperationQueue Cancel all operations is not cancelled until it finishes the operation

In my view i have image view, the data for image view comes form Url, the images are around 1-3 …

ios nsoperationqueue cancellation
Using Android's build-in acoustic echo cancellation

Does anyone know how to use Android device's built-in acoustic echo cancellation? It is located somewhere in silicon and is …

android echo voip cancellation
What exactly is a cancellation point?

I am trying to get my head around what exactly a cancellation point is in c++. I have read: man …

c++ cancellation
An exception of type 'System.OperationCanceledException' occurred

I was implementing a Parallel.ForEach loop to do some work, but I bounced into a problem due to an …

c# exception cancellation parallel.foreach
Cancel a promise when a component is unmounted in ReactJS

I've a component named "Item" which creates and calls a promise when it has been mounted. class Item extends React.…

reactjs promise cancellation
Acoustic echo cancellation in Java

I'm implementing a VOIP application that uses pure Java. There is an echo problem that occurs when users do not …

java echo signal-processing javasound cancellation