Class SafeRunnable

java.lang.Object
app.l2nx.gs.adapter.core.concurrent.SafeRunnable

public final class SafeRunnable extends Object
Wraps a Runnable so any uncaught Throwable is logged and swallowed. Critical for ScheduledExecutorService tasks: an uncaught exception there cancels all subsequent invocations of the same task.
  • Method Details

    • wrap

      public static Runnable wrap(Runnable delegate, app.l2nx.log.NxLog log)