<@U0ANSGGVC>: it depends on what library author ma...
# language-proposals
o
@kirillrakhman: it depends on what library author made available. e.g.
async
function can have executor as a parameter, thus it would be like:
Copy code
val future = async(exec) { // coroutine
 … 
 val value = await(mainThread, someAsyncComputation) // suspends until someAsyncComputation completes and continues on main thread
…
}