In Java it works by accepting an object which implements runnable :
Thread myThread = new Thread(new myRunnable())
where myRunnable
myRunnable
Basic example of Thread with Lamda
Thread
Lamda
fun main() { val mylamda = Thread({ for (x in 0..10){ Thread.sleep(200) println("$x") } }) startThread(mylamda) } fun startThread(mylamda: Thread) { mylamda.start() }