Note that you can shorten to ` override fun...
# eap
c
Note that you can shorten to
override fun newThread(r: Runnable?) = Thread(r).apply { isDaemon = true }
👍 1
v
code changed! much better! thanks
even better
Copy code
Executors.newSingleThreadScheduledExecutor({
		r -> Thread(r).apply { isDaemon = true }
	})