private void recordException(ChannelFuture future) {
        if (!future.isSuccess()) {
            recordException(future.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