public boolean cancel(AsyncChannelRunner runner) { if (gravityPool == null) { runner.reset(); throw new NullPointerException("Gravity not started or pool disabled"); } return gravityPool.remove(runner); }
public void execute(AsyncChannelRunner runner) { if (gravityPool == null) { runner.reset(); throw new NullPointerException("Gravity not started or pool disabled"); } gravityPool.execute(runner); }