pawel_byszewski
01/16/2017, 1:57 PMawait
operation and new thread for continue
part. Let’s consider some code
println(“one”)
async {
await(longOperation()) // longOperation prints “two”
println(“three")
}
every string is printed on another thread. For me it is unintuitive. I have faced up the problem to print “three” on the same thread as “one” thats why I am looking for some async-await implementation