Skip to the content.

Home / cs-notes / Architecture / Components / Netty / Handler / timeout / IdleStateHandler / schedule

    /**
     * This method is visible for testing!
     */
    ScheduledFuture<?> schedule(ChannelHandlerContext ctx, Runnable task, long delay, TimeUnit unit) {
        return ctx.executor().schedule(task, delay, unit);
    }