CountingThreadFactory
open class CountingThreadFactory(prefix: String, isDaemon: Boolean = false, priority: Int = -1) : CommonsThreadFactoryAdapter
A thread factory which creates threads with the given prefix as its name. Each thread will end up with a name of $prefix-thread-$id
, where id
is an incrementing number for each created thread.