janvladimirmostert
03/21/2018, 2:50 PMval mythread = thread { .... some code here that runs in this thread ... }
... more code here ...
while (mythread.isAlive) {
Thread.sleep(10)
}
do something else that depends on things setup during the thread
spand
03/21/2018, 2:51 PMThread.join()
janvladimirmostert
03/21/2018, 2:54 PMmythread.join()
and it waits. Thanks Johannes!!Czar
03/21/2018, 3:03 PMjanvladimirmostert
03/21/2018, 3:05 PMCzar
03/21/2018, 3:24 PMjanvladimirmostert
03/21/2018, 4:37 PM