AM
б) Сделать SQL запрос. :)
Size: a a a
AM
D
D
AM
AM
D
AM
SV
SV
SV
PE
AM
runBlocking
is quite specific thing created to be a single point of communication between blocking and suspending worlds. E.g. all calls to runBlocking
share the same thread and can block each other. So try to minimize number of places it's used in.SV
runBlocking
here.SV
str.map { suspendFun() }
AM
str.map { suspendFun() }
Optional.map
by chance not an inline function?AM
SV
java.util.Optional
SV
AM
map
is not suspend, so you can't call suspending function from there. And it's not inline so isn't getting eliminated similarly to Iterable.map
from Kotlin.