void run() { ... if (done) return cancel(); ... }
where cancel() return void. This won\'t compile... and I ca
cancel()
void
void is not a type. If you use the Void type instead of the void keyword, however, your code will work, but: You'll manually have to return null in all exit points from your method.
return null