Java threads - may not be memory efficient? - yCrash
JavaScript sleep - javatpoint
Calling out from Java to JavaScript (with call back) - leveraging interoperability support of GraalVM - AMIS Technology Blog | Oracle - Microsoft Azure
Thread.sleep(): Your Guide to Pausing Execution in Java