- Singleton<T> singleton = new Singleton<T>(clss, postRegistration);
-
- shutdownStarting. //
- thenCompose(singleton::prepareUnregistration). //
- thenRunAsync(() -> {
- try {
- srf.get().unregister();
- } catch (InterruptedException | ExecutionException e) {
- e.printStackTrace();
- }
- }, executor);
- return singleton;
+// Singleton<T> singleton = new Singleton<T>(clss, postRegistration);
+
+// shutdownStarting. //
+// thenCompose(singleton::prepareUnregistration). //
+// thenRunAsync(() -> {
+// try {
+// srf.get().unregister();
+// } catch (InterruptedException | ExecutionException e) {
+// e.printStackTrace();
+// }
+// }, executor);
+// return singleton;