MessengerThreadFactory - laforge49/Asynchronous-Functional-Programming GitHub Wiki
The MessengerThreadFactory class is a very simple implementation of java.util.ThreadFactory and is used to create the threads used for asynchronous message passing.
/**
* The MessengerThreadFactory is used to create threads.
*/
class MessengerThreadFactory extends ThreadFactory {
/**
* The newThread method returns a newly created Thread.
*/
def newThread(runnable: Runnable) = new Thread(runnable)
}