public void shutdown()

in tchannel-core/src/main/java/com/uber/tchannel/api/TChannel.java [196:214]


    public void shutdown(boolean sync) {
        timer.stop();
        peerManager.close();
        Future<?> bg = bossGroup.shutdownGracefully();
        Future<?> cg = childGroup.shutdownGracefully();

        try {
            if (sync) {
                bg.get();
                cg.get();
            }
        } catch (InterruptedException ie) {
            // set interrupt flag
            Thread.currentThread().interrupt();
            logger.warn("shutdown interrupted.", ie);
        } catch (ExecutionException ee) {
            logger.warn("shutdown runs into an ExecutionException.", ee);
        }
    }