Mother F**k the ScheduledExecutorService! Thats right! Motherfuck this service. Deep hidden in the javadoc of this magnificent class is this gem "If any execution of the task encounters an exception, subsequent executions are suppressed.". In other words, if your runnable task has any fuckups, your task will no longer be run. What sucks about this, is there is no clear indication that there was a fuckup in the task. No warning, just silenty the task gets canceled leading you to say: "Dude! where my task!?" Lets use this example: import java.util.concurrent.Executors;
Read full article from Mother F**k the ScheduledExecutorService! | Nomad Labs Code
No comments:
Post a Comment