SelfDestructiveThread

Deprecated

Not being used by any cross library, and should not be used, internal implementation detail.

Background thread which is destructed after certain period after all pending activities are finished.

Constructors

Link copied to clipboard
constructor(threadName: String, priority: Int, destructAfterMillisec: Int)

Types

Link copied to clipboard
interface ReplyCallback<T>
Reply callback for postAndReply

Functions

Link copied to clipboard
Returns the thread generation.
Link copied to clipboard
Returns true if the thread is alive.
Link copied to clipboard
Execute the specific callable object on this thread and call the reply callback on the calling thread once it finishes.
Link copied to clipboard
open fun <T> postAndWait(callable: Callable<T>, timeoutMillis: Int): T
Execute the specified callable object on this thread and returns the returned value to the caller.