(Consumer<Apple2e> action)
| 78 | } |
| 79 | |
| 80 | public static void whileSuspended(Consumer<Apple2e> action) { |
| 81 | withComputer(c->c.getMotherboard().whileSuspended(()->action.accept(c))); |
| 82 | } |
| 83 | |
| 84 | public static <T> T whileSuspended(Function<Apple2e, T> action, T defaultValue) { |
| 85 | return withComputer(c->c.getMotherboard().whileSuspended(()->action.apply(c), defaultValue), defaultValue); |
no test coverage detected