| Constructor and Description |
|---|
Runnables() |
| Modifier and Type | Method and Description |
|---|---|
static Runnable |
withUncaughtExceptionHandler(Runnable runnable,
Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Guard
Runnable with uncaughtException handler, because ScheduledExecutorService does not respect the one assigned to executing
Thread instance. |
public static Runnable withUncaughtExceptionHandler(Runnable runnable, Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Runnable with uncaughtException handler, because ScheduledExecutorService does not respect the one assigned to executing
Thread instance.runnable - Runnable future to guard.uncaughtExceptionHandler - Handler to call in case of uncaught exception.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.