Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import javafx.concurrent.Task;

public class Main {
    public static void runTaskLater(Runnable runnable) {
        Task task = new Task() {
            @Override
            protected Object call() throws Exception {
                runnable.run();
                return null;
            }
        };

        new Thread(task).start();

    }
}