https://kotlinlang.org logo
#eap
Title
# eap
p

pawel_byszewski

01/16/2017, 1:57 PM
@adambl4 as I see there is new thread for every
Copy code
await
operation and new thread for
Copy code
continue
part. Let’s consider some code
Copy 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