void cancel() {
        if (hasException || hasResource || isCancelled) {
            return;
        }
        engineRunnable.cancel();
        Future currentFuture = future;
        if (currentFuture != null) {
            currentFuture.cancel(true);
        }
        isCancelled = true;
        listener.onEngineJobCancelled(this, key);
    }
A class that manages a load by adding and removing callbacks for for the load and notifying callbacks when the
load completes.
core/src/main/java/com/bumptech/glide/load/engine/EngineJob.java