/** * Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread. * * @param runnable * @return the started thread. */ public static Thread go(Runnable runnable) { Thread thread = daemonThreadFrom(runnable); thread.start(); return thread; }
/** * Creates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started * thread. * * @param runnable * @param threadName the thread name. * @return the started thread. */ public static Thread go(Runnable runnable, String threadName) { Thread thread = daemonThreadFrom(runnable); thread.setName(threadName); thread.start(); return thread; }
/** * Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread. * * @param runnable * @return the started thread. */ public static Thread go(Runnable runnable) { Thread thread = daemonThreadFrom(runnable); thread.start(); return thread; }
/** * Creates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started * thread. * * @param runnable * @param threadName the thread name. * @return the started thread. */ public static Thread go(Runnable runnable, String threadName) { Thread thread = daemonThreadFrom(runnable); thread.setName(threadName); thread.start(); return thread; }