MCPcopy Create free account
hub / github.com/defold/defold / runShutdownActions

Method runShutdownActions

editor/src/java/com/defold/editor/Shutdown.java:34–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 static synchronized void runShutdownActions() {
35 // Execute shutdown actions in reverse add order.
36 for (int i = shutdownActions.size() - 1; i >= 0; --i) {
37 Runnable action = shutdownActions.get(i);
38
39 try {
40 action.run();
41 } catch (Throwable error) {
42 error.printStackTrace();
43 logger.error("failed run shutdown action", error);
44 }
45 }
46
47 shutdownActions.clear();
48 }
49}

Callers 1

stopMethod · 0.95

Calls 5

getMethod · 0.65
sizeMethod · 0.45
runMethod · 0.45
errorMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected