public class Thread
extends Object
GDK enhancements for Thread.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static List<Thread> |
allThreads(Thread self)Get all threads |
|
public static String |
dumpAll(Thread self)Dump the thread dump of all threads |
|
public static Thread |
start(Thread self, Closure closure)Start a Thread with the given closure as a Runnable instance. |
|
public static Thread |
start(Thread self, String name, Closure closure)Start a Thread with a given name and the given closure as a Runnable instance. |
|
public static Thread |
startDaemon(Thread self, Closure closure)Start a daemon Thread with the given closure as a Runnable instance. |
|
public static Thread |
startDaemon(Thread self, String name, Closure closure)Start a daemon Thread with a given name and the given closure as a Runnable instance. |
| Methods inherited from class | Name |
|---|---|
class Object |
addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits |
Get all threads
self - placeholder variable used by Groovy categories; ignored for default static methodsDump the thread dump of all threads
self - placeholder variable used by Groovy categories; ignored for default static methodsStart a Thread with the given closure as a Runnable instance.
self - placeholder variable used by Groovy categories; ignored for default static methodsclosure - the Runnable closureStart a Thread with a given name and the given closure as a Runnable instance.
self - placeholder variable used by Groovy categories; ignored for default static methodsname - the name to give the threadclosure - the Runnable closureStart a daemon Thread with the given closure as a Runnable instance.
self - placeholder variable used by Groovy categories; ignored for default static methodsclosure - the Runnable closureStart a daemon Thread with a given name and the given closure as a Runnable instance.
self - placeholder variable used by Groovy categories; ignored for default static methodsname - the name to give the threadclosure - the Runnable closure