Package org.jivesoftware.smack.util
Class Async
java.lang.Object
org.jivesoftware.smack.util.Async
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LikeRunnable
, but allows therunOrThrow()
method to throw an exception. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Thread
daemonThreadFrom
(Runnable runnable) static Thread
Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.static Thread
Creates 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
-