    @Test
    public void testMyGenerate() {

        List<LocalDateTime> localDateTimes =
            Functions.myGenerate(() -> {
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    //Ignore the exception
                }

                return LocalDateTime.now();
            }, 10);
        System.out.println(localDateTimes);
    }