YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.client.SafeRun Class Reference

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...

Collaboration diagram for de.yaacc.snapcast.client.SafeRun:
Collaboration graph

Static Public Member Functions

static boolean run (Runnable body, Runnable onFailure)
 

Detailed Description

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.

Member Function Documentation

◆ run()

static boolean de.yaacc.snapcast.client.SafeRun.run ( Runnable body,
Runnable onFailure )
static
Parameters
onFailurewhat 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: