-
新建线程
object :Thread() {override fun run() {// 代码块} }.start()
thread(start = true) {// 代码块}
Thread {// 代码块}.start()
-
List
- 实例化可变可add的List
private val list: MutableList<UsbFile> = mutableListOf()
object :Thread() {override fun run() {// 代码块} }.start()
thread(start = true) {// 代码块}
Thread {// 代码块}.start()
private val list: MutableList<UsbFile> = mutableListOf()