Class Async


  • public class Async
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Async.ThrowingRunnable
      Like Runnable, but allows the runOrThrow() method to throw an exception.
    • Constructor Summary

      Constructors 
      Constructor Description
      Async()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Thread daemonThreadFrom​(java.lang.Runnable runnable)  
      static java.lang.Thread go​(java.lang.Runnable runnable)
      Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.
      static java.lang.Thread go​(java.lang.Runnable runnable, java.lang.String threadName)
      Creates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • go

        public static java.lang.Thread go​(java.lang.Runnable runnable)
        Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.
        Parameters:
        runnable - TODO javadoc me please
        Returns:
        the started thread.
      • go

        public static java.lang.Thread go​(java.lang.Runnable runnable,
                                          java.lang.String threadName)
        Creates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started thread.
        Parameters:
        runnable - TODO javadoc me please
        threadName - the thread name.
        Returns:
        the started thread.
      • daemonThreadFrom

        public static java.lang.Thread daemonThreadFrom​(java.lang.Runnable runnable)