Runs a step of the service that must never take the process down (the watchdog and the power tick run on the main thread): whatever it throws ends the step and calls the handler, which ends the session with a typed ending.
More...
|
| static boolean | run (Runnable body, Runnable onFailure) |
| |
Runs a step of the service that must never take the process down (the watchdog and the power tick run on the main thread): whatever it throws ends the step and calls the handler, which ends the session with a typed ending.
Pure.
◆ run()
| static boolean de.yaacc.snapcast.client.SafeRun.run |
( |
Runnable | body, |
|
|
Runnable | onFailure ) |
|
static |
- Parameters
-
| onFailure | what to do when body threw (it may throw itself; that is swallowed too) |
- Returns
- true when
body ran to its end
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/snapcast/client/SafeRun.java