private void recordException(Throwable cause) {
        if (lastException == null) {
            lastException = cause;
        } else {
            logger.warn(
                "More than one exception was raised. " +
                    "Will report only the first one and log others.", cause);
        }
    }
Run all pending scheduled tasks in the {@link EventLoop} for this {@link Channel} and return the
{@code nanoseconds} when the next scheduled task is ready to run. If no other task was scheduled it will return
{@code -1}.
plc4j/transports/test/src/main/java/io/netty/channel/embedded/Plc4xEmbeddedChannel.java