Top "Cancellation" questions

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

How to retract a message in RabbitMQ?

I've got something like a job queue over RabbitMQ and, upon a request to cancel a job, I'd like to …

message-queue rabbitmq amqp cancellation
How to cancel an observable sequence

I have a very simple IObservable<int> that acts as a pulse generator every 500ms: var pulses = Observable.…

c# system.reactive cancellation
Stopping a Thread, ManualResetEvent, volatile boolean or cancellationToken

I have a Thread (STAThread) in a Windows Service, which performs a big amount of work. When the windows service …

c# multithreading cancellation cancellation-token
How to cancel GetConsumingEnumerable() on BlockingCollection

In the following code I'm using the CancellationToken to wake up the GetConsumingEnumerable() when the producer is not producing and …

c# cancellation blockingcollection
How to cancel timeout inside of Javascript Promise?

I'm toying with promises in JavaScript and tried to promisify setTimeout function: function timeout(ms) { return new Promise(function(resolve, …

javascript promise settimeout cancellation
Aborting a long running task in TPL

Our application uses the TPL to serialize (potentially) long running units of work. The creation of work (tasks) is user-driven …

c# task-parallel-library cancellation
Android Speex echo cancellation problems

I have a basic audiorecord-audiotrack, udp packets voice chat between two android devices. It works, but I have a bad …

android echo speex cancellation
Getting the saved instruction pointer address from a signal handler

My question is somewhat different from others that have asked about fault addresses. I'm trying to implement a horrible hack …

c linux pthreads signals cancellation
Stopping a task without a CancellationToken

I am using an external library that has async methods, but not CancellationToken overloads. Now currently I am using an …

c# async-await cancellation
Checking if a Java Timer is cancelled

Why is there no isCancelled method for a java.util.Timer object? I would like to schedule a task if …

java timer cancellation