https://kotlinlang.org logo
#eap
Title
# eap
c

cedric

04/20/2017, 7:25 PM
Note that you can shorten to
override fun newThread(r: Runnable?) = Thread(r).apply { isDaemon = true }
👍 1
v

vinicius.rob.cunha

04/20/2017, 7:30 PM
code changed! much better! thanks
even better
Copy code
Executors.newSingleThreadScheduledExecutor({
		r -> Thread(r).apply { isDaemon = true }
	})