Closed ghostwan closed 6 years ago
It's done by couroutine mechanisum in kotlin :
val t1 = uiAsync { myPepper.say("Nous voilà dans la cuisine!") }
val t2 = uiAsync { myPepper.animate(R.raw.exclamation_both_hands_a003) }
val t3 = uiAsync { nao.animate(R.raw.exclamation_both_hands_a003) }
println("Task are done ${t1.await()} ${t2.await()} ${t3.await()}")