When invoking shutdown of executors this will leave all current scheduled tasks for execution. This means possibly there will be one last poll after that.
In the case of a device simulator for example this is not good because when clearing all the created demo devices sometimes some are left behind for this particular reason.
When using shutdownNow() we ensure to not execute anything anymore in this point of time
When invoking shutdown of executors this will leave all current scheduled tasks for execution. This means possibly there will be one last poll after that. In the case of a device simulator for example this is not good because when clearing all the created demo devices sometimes some are left behind for this particular reason. When using shutdownNow() we ensure to not execute anything anymore in this point of time