utils/cancellable_future library

Classes

CancellableFuture<T>
A future associated to a job that can be cancelled. If you use an API method that return this future and don't have an interest in the result anymore you should call the cancel method, or the job will keep running and waste resources. Note that the future's job will only be cancelled when cancel is explicitly called: if you use timeout and the timeLimit expires the job will keep executing.