@@ -0,0 +1,527 @@
+package org.metaborg.util.task;%0A%0A/**%0A * Cancellation token implementation that cancels on thread interrupts.%0A */%0Apublic class ThreadCancel implements ICancel %7B%0A    @Override public boolean cancelled() %7B%0A        return Thread.currentThread().isInterrupted();%0A    %7D%0A%0A    @Override public void throwIfCancelled() throws InterruptedException %7B%0A        if(Thread.interrupted()) %7B%0A            throw new InterruptedException();%0A        %7D%0A    %7D%0A%0A    @Override public void cancel() %7B%0A        Thread.currentThread().interrupt();%0A    %7D%0A%7D%0A

Add Cancel that works on thread interrupts.