Knowing when we've exceeded our deadline

Dr Heinz M. Kabutz heinz at javaspecialists.eu
Mon May 3 19:26:47 UTC 2021


Hi,

in older versions of Project Loom, we could guess whether our 
ExecutorService had exceeded our timeout, because the calling thread 
would exit interrupted. Not sure if this was deliberate or a side 
effect. However, in the latest build, the owner thread does not return 
interrupted. What would be a good way to know whether we have exceeded 
our deadline or not?

Regards

Heinz
-- 
Dr Heinz M. Kabutz (PhD CompSci)
Author of "The Java™ Specialists' Newsletter" - www.javaspecialists.eu
Java Champion - www.javachampions.org
JavaOne Rock Star Speaker
Tel: +30 69 75 595 262
Skype: kabutz



More information about the loom-dev mailing list