Package org.jivesoftware.smack.util
Class Async
java.lang.Object
org.jivesoftware.smack.util.Async
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLikeRunnable, but allows therunOrThrow()method to throw an exception. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreaddaemonThreadFrom(Runnable runnable) static ThreadCreates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.static ThreadCreates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started thread.
-
Constructor Details
-
Async
public Async()
-
-
Method Details
-
go
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
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 pleasethreadName- the thread name.- Returns:
- the started thread.
-
daemonThreadFrom
-